webext-redux icon indicating copy to clipboard operation
webext-redux copied to clipboard

proxy store is out of sync with background store in a new route initially

Open fyang1024 opened this issue 5 years ago • 1 comments

We have a browser extension project. It uses HashRouter to manage routes. Say, RouteA maps to ComponentA, RouteB maps to ComponentB. In ComponentA, when user clicks a button, an action is dispatched to change a state and then navigate to RouteB (which maps to ComponentB). The problem we have is in ComponentB componentDidMount() callback, the state change is not available. It seems in the above scenario, proxy store is out of sync with background store. If I close the extension popup and open it again, the state change becomes available.

fyang1024 avatar Jul 06 '19 23:07 fyang1024

@fyang1024 Nearly 3 years ago but have you find any solution about that? My proxy store also out of sync with background store

cerenkeklik avatar Feb 03 '22 08:02 cerenkeklik