tshaddix / webext-redux

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

"can't access dead object" while developing on Firefox #277

Closed loxator closed 1 year ago

loxator commented 2 years ago

Firstly, thank you for your contribution with this amazing librayr!

I am currently working on a cross-browser extension. The library works well with Chrome but within Firefox, because of the way Firefox works with extensions, it seems to lose the redux store and throws the can't access dead object whenever it encounters a statement like store.dispatch(...) in the BackgroundPage, if the extension loses context (ie the user navigates to another tab which causes the pop-up to close), and then crashes the extension.

Any idea of how to go about it? Thank you for your help!

image