tshaddix / webext-redux

A set of utilities for building Redux applications in Web Extensions.
MIT License
1.22k stars 179 forks source link

Doesn't work with react-redux v8 #280

Closed spinbag closed 1 month ago

spinbag commented 2 years ago

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

buryo commented 2 years ago

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

eduardoacskimlinks commented 2 years ago

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

llGaetanll commented 1 year ago

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