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

TypeError thrown if dispatched method resolves with a string #45

Open
janeysaur opened this issue Jul 5, 2019 · 0 comments
Open

TypeError thrown if dispatched method resolves with a string #45

janeysaur opened this issue Jul 5, 2019 · 0 comments

Comments

@janeysaur
Copy link
Collaborator

Ran into an issue with this line: https://github.com/respond-framework/rudy/blob/master/packages/rudy/src/core/createRequest.js#L166

      ...
    return Promise.resolve(dispatch(action)) // dispatch transformed action
      .then((res) => {
        ...
=>      if (res) res._dispatched = true // tell `middleware/call/index.js` to NOT automatically dispatch callback returns

        return res
      })
  }```

when my dispatched method resolved with a string return value. 
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