webext-redux icon indicating copy to clipboard operation
webext-redux copied to clipboard

Doesn't work with react-redux v8

Open spinbag opened this issue 2 years ago • 3 comments

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:

  1. Initialise a store in the background script
  2. Initialise a proxy store in the UI
  3. Try to get state using useSelector

Result: Screenshot 2022-04-29 at 15 18 39

spinbag avatar Apr 29 '22 12:04 spinbag

Can confirm this. Getting the same error using react-redux v8.0

buryo avatar May 10 '22 12:05 buryo

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:

  1. Initialise a store in the background script
  2. Initialise a proxy store in the UI
  3. Try to get state using useSelector

Result: Screenshot 2022-04-29 at 15 18 39

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

eduardoacskimlinks avatar May 16 '22 13:05 eduardoacskimlinks

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

llGaetanll avatar Jan 13 '23 17:01 llGaetanll