Skip to content

reactor.dispatch throwing error 'VM31785:6061 Uncaught Error: dispatch cannot be called with an undefined action type.' #226

Description

@jani937

Following below https://optimizely.github.io/nuclear-js/docs/01-getting-started.html to see shopping cart example from nuclearjs demo.

  1. Create reactor.js as per above url and completed all the documentation.
  2. After building & running app, below is the error i have experiencing with at 'reactor.dispatch(RECEIVE_PRODUCTS, { products })' line of code in actions.js file.
    VM31785:6061 Uncaught Error: dispatch cannot be called with an undefined action type.

Anyone has any suggestions?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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