Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't display item: f functionName #140

Open
troywray opened this issue Apr 6, 2020 · 0 comments
Open

Doesn't display item: f functionName #140

troywray opened this issue Apr 6, 2020 · 0 comments

Comments

@troywray
Copy link

troywray commented Apr 6, 2020

On storing a function, I can verify the store is fine by calling the function or inspecting store in console.

However, according to devtools, the key doesn't even exist (presumably it causes an error or evaluates to undefined)

reducer:
        stateAppSetFnVerifyCredentials: {
            reducer(state, action) {
                state.fnVerifyCredentials = action.payload.fn;
                state.fnVerifyCredentialsString = action.payload.fnString;
            }
        }
        ....
const fnPointer = fnSubmitCredentials.bind(this);
this.props.stateAppSetFnVerifyCredentials({fn: fnPointer, fnString: fnPointer.toString()});

e.g. raw shows this, i.e. fnString and fn are stored (verified) but fn just doesn't show.

{
...
    fnVerifyCredentialsString: 'function () { [native code] }'
...
}

It doesn't in the action panel either, in fact until I added fnString, action just showed type, not even a payload key.

Action panel:

{
  type: 'app/stateAppSetFnVerifyCredentials',
  payload: {
    fnString: 'function () { [native code] }'
  }
}

Suggest it should show it as f fnVerifyCredentials like console would.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant