Closed rcanessa89 closed 4 years ago
@elboman +1 for this. Two solutions:
Currently have to patch it up locally. https://react-redux.js.org/using-react-redux/accessing-store
Hey, thanks for filing the issue.
I think it's fair to go with solution number one, as the current version is 0.1.x and we were expecting breaking changes anyway.
React hooks are here to stay, and I assume, given the super simple upgrade path for react-redux, most users will be using the latest version anyway.
I'm about to push an update that converts ConnectedUIRouter
to a function component with hooks, and that supports the newer version of Redux.
Hey, I've put up #10 to tackle this, what do you think?
@elboman any updates on this? Having the same issue
@elboman Can you say when this could be released? It would be nice to have the original package instead of a forked one.
https://github.com/ui-router/redux/releases/tag/1.0.0
I don't actually use this project, but I released @elboman 's PR as 1.0.0. let me know if this works for ya'll or not.
Is not working with react redux 6.0.1, the problem is the store value in the context, is coming undefined, looks like the current version of "ui-router/redux" is using the legacy React context API.
I builded this solution for my project but the context API should be change it for future versions of React.