webext-redux
webext-redux copied to clipboard
Doesn't work with react-redux v8
Trying to use this library with react-redux
v8.0.1 breaks the app. Though it works with react-redux
v7.2.8.
Steps to reproduce:
- Initialise a store in the background script
- Initialise a proxy store in the UI
- Try to get state using
useSelector
Result:
Can confirm this. Getting the same error using react-redux
v8.0
Trying to use this library with
react-redux
v8.0.1 breaks the app. Though it works withreact-redux
v7.2.8.Steps to reproduce:
- Initialise a store in the background script
- Initialise a proxy store in the UI
- Try to get state using
useSelector
Result:
Keep in mind that currently, the current version of the library has a hardcode limitation regarding the Redux
version, which could be causing conflict with the version you are using or that it doesn't provide support for it https://github.com/tshaddix/webext-redux/blob/master/package.json#L52
A solution (although not ideal) is to downgrade to react-redux@7
for the time being. This fixed the issue for me
npm i react-redux@7