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
Hi, thanks for amazing library. I get the wrong behavior when i open my extension as a separate browser tab. Due to this code
browserAPI.runtime.sendMessage(...args, onErrorCallback);
// We will broadcast state changes to all tabs to sync state across content scripts
return browserAPI.tabs.query({}, (tabs) => {
for (const tab of tabs) {
browserAPI.tabs.sendMessage(tab.id, ...args, onErrorCallback);
}
});
My UI's store getting same patch twice and as i use custom diff/patch strategy (works like a regular redux without IPC de/serialization issues) for my useEffect's etc. it's a bit unexcpected for example when some item is added to some list inside the state and replaced by the item with the same structure but with a different refference right after. "remove" patch works even more fun :)
Could you please clarify if this is intended or is it a bug?
Thanks!
The text was updated successfully, but these errors were encountered:
Hey there, thanks for creating an issue. I don't have time to look into this right now but hopefully I'll be able to dedicate some time to this library soon.
webext-redux/src/wrap-store/wrapStore.js
Line 130 in 4fab518
Hi, thanks for amazing library. I get the wrong behavior when i open my extension as a separate browser tab. Due to this code
My UI's store getting same patch twice and as i use custom diff/patch strategy (works like a regular redux without IPC de/serialization issues) for my
useEffect
's etc. it's a bit unexcpected for example when some item is added to some list inside the state and replaced by the item with the same structure but with a different refference right after. "remove" patch works even more fun :)Could you please clarify if this is intended or is it a bug?
Thanks!
The text was updated successfully, but these errors were encountered: