You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thanks for your work, this package really come in a handy when struggling to manage an extension's state.
For a project I need to exchange some informations using runtime.onMessage alongside the store, and it seems that when the background page add another listener to runtime.onMessage, the proxy store doesn't initialize himself properly and the ready promise is never resolved, wich is blocking the entire application.
There is no specific error message.
tested on firefox dev edition 133.0b9, windows.
// background.tsimport{createWrapStore}from'webext-redux';import{configureStore}from"@reduxjs/toolkit";importcounterReducerfrom"./counterSlice";importbrowserfrom"webextension-polyfill"conststore=configureStore({reducer: {counter: counterReducer,},middleware: getDefaultMiddleware=>getDefaultMiddleware({}).concat(()=>{returnnext=>action=>{console.log((actionasany).type,"",(actionasany).payload)returnnext(action)}})});// a normal Redux storeconstwrapStore=createWrapStore()wrapStore(store);console.log("store created");// remove this and the proxy store will work perfectlybrowser.runtime.onMessage.addListener(asyncfunction(msg,sender){constmessage=msgasanyconsole.log("message",message)});
Hope this can be fixed soon.
Thanks in advance,
Vivien
The text was updated successfully, but these errors were encountered:
Thanks for the report, that's very helpful! Unfortunately I don't have much time for this project right now but I'll try to investigate within the next few weeks. I didn't test on Firefox, I was hoping it would work the same as Chrome but looks like that's not the case 😞
I have an extension built for chrome using manifestV2. I don't know the real reason but the same behaviour described by @Choucroute-melba happens often for some users of the product and this does not depend on the operating system or machine characteristics. Sorry for the lack of details, I'm trying to figure out the problem at the moment. The only thing i can notice is that there is Unchecked chrome.runtime.lastError in the console. I hope the comment will be useful, maybe someone with the same problem will come to the comments 🙂
Hello,
First of all thanks for your work, this package really come in a handy when struggling to manage an extension's state.
For a project I need to exchange some informations using runtime.onMessage alongside the store, and it seems that when the background page add another listener to runtime.onMessage, the proxy store doesn't initialize himself properly and the ready promise is never resolved, wich is blocking the entire application.
I tested in chrome and firefox with the following extension, and only firefox have this problem, maybe related to different manifest V3 support ?
https://github.com/Choucroute-melba/webext-redux-example
There is no specific error message.
tested on firefox dev edition 133.0b9, windows.
Hope this can be fixed soon.
Thanks in advance,
Vivien
The text was updated successfully, but these errors were encountered: