Rematch: Error: Actions must be plain objects. Use custom middleware for async actions.

Created on 23 Oct 2018  路  3Comments  路  Source: rematch/rematch

Most helpful comment

@d3dc ok I got it)
image

All 3 comments

I answered a little hastily before. In Rematch, the dispatch function is augmented with pre-bound dispatchers. Passing an object as the second argument to connect will try to bind all of it's members.

You're trying to bindActionCreators with functions that do not return plain actions. (They return a promise of a dispatch cycle)

@d3dc so can you help me with it, please? I can't find the right solution to this problem in your documentation. What do I need to do to pass correct effects to the second argument to connect?

@d3dc ok I got it)
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

miraage picture miraage  路  4Comments

haikyuu picture haikyuu  路  5Comments

slbucur picture slbucur  路  4Comments

blairbodnar picture blairbodnar  路  3Comments

saraivinha85 picture saraivinha85  路  6Comments