Closed vjocw closed 5 years ago
going down to v5.x.x fixed this issue.
I can confirm this as well. Can we set react-redux
as a peerDependency and set it to ^v5.0.0
until this gets resolved?
Issue is caused due to react-redux
using React.createContext
.
So, workaround is to use v5 unless providers will be implemented using createContext
Hi, I'm a Redux maintainer.
The real solution here is to update the library to correctly read the store out of the ReactReduxContext
instance for compatibility with v6, and release an updated version.
See our docs page here: React-Redux: Accessing the Store.
Does this issue being closed mean that React-Redux >= 6 is good to use with this plugin?
No, this library is currently only compatible with <= v5, and breaks with >= v6.
Type of issue
bug
Description
Dispatch gets broken. Maybe something to do with this.context?..
Current behavior
store.dispatch does not exist.
Expected behavior
store.dispatch should exist.
Steps to reproduce
Your environment
fusion-plugin-rpc-redux-react version: 2.0.2
Node.js version (
node --version
): 8.11.3npm version (
npm --version
): 5.6.0Operating System: mac os x 10.14.2