Skip to content

firstRoute is not a serializable Action #77

@pjnovas

Description

@pjnovas

I'm getting an error from redux as soon as I dispatch firstRoute Action, I guess it's because commit inside it is a function/ promise to render react after it.

index.js:1 A non-serializable value was detected in an action, in the path: `commit`. Value: ƒ (action) {
        if (committed) return Promise.resolve();
        committed = true;
        return Promise.resolve(commit(action)).then(function () {
          if (!_this8.options.save) return;

  … 
Take a look at the logic that dispatched this action:  {type: "HOME", params: {…}, query: {…}, hash: "", state: {…}, …} 

It tells me to see: https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants

Is there a workaround? or another way of lifting the router without dispatching a non serializable action?

After that everything seems to work fine.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions