Rematch: Fix readme with how to use connected-react-router with rematch

Created on 21 Nov 2018  路  5Comments  路  Source: rematch/rematch

Should I use this?

or may be there is another way?

And there is an old recipe with react-redux-router .../redux.md

wontfix

Most helpful comment

I have the same problem with react router before for my solution I migrate to use ConnectedRouter.

You can try : https://codesandbox.io/s/72o3k1z3nq

All 5 comments

I'm not sure, but as a guess, I imagine you could use the old recipe combined with connected-react-router breaking changes from v4 -> v5.

This has reminded me: The recipe doesn't actually call bindActionCreators and you would have to wrap the action creators somehow:

effects: {
  push: (...args) => dispatch(push(...args))
}

Just to advertise: I also spit-balled a way to fix up the encapsulation here and a better way to distribute recipes in #572 - The big unknown of course is the recipe packaging.

Thank you, guys!
I will take a look at your ideas.

By the way, here is the project that, I think could be included inside examples and we could update it to have routing and selectors and other rematch features?
Please let me know what do you think about it.
https://github.com/alexicum/sales-size

P.S. Now it is overcomplicated a little (includes heroku), and I plan to replace server with axios-mock-adapter.

I have the same problem with react router before for my solution I migrate to use ConnectedRouter.

You can try : https://codesandbox.io/s/72o3k1z3nq

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xialvjun picture xialvjun  路  6Comments

gpolonus picture gpolonus  路  3Comments

kdela picture kdela  路  4Comments

canyavall picture canyavall  路  6Comments

ShMcK picture ShMcK  路  4Comments