Closed dermeck closed 5 months ago
This change adds 'this'-binding inside the Store constructor for getState and subscribe. This fixes the Uncaught TypeError: Cannot read properties of undefined (reading 'state') when using webext-redux with newer versions of react-redux.
getState
subscribe
Uncaught TypeError: Cannot read properties of undefined (reading 'state')
Should fix https://github.com/tshaddix/webext-redux/issues/280 and fix https://github.com/tshaddix/webext-redux/issues/286
Is there a chance to merge this fix?
This change adds 'this'-binding inside the Store constructor for
getState
andsubscribe
. This fixes theUncaught TypeError: Cannot read properties of undefined (reading 'state')
when using webext-redux with newer versions of react-redux.Should fix https://github.com/tshaddix/webext-redux/issues/280 and fix https://github.com/tshaddix/webext-redux/issues/286