tshaddix / webext-redux

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

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

Open fyang1024 opened 5 years ago

fyang1024 commented 5 years ago

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.

cerenkeklik commented 2 years ago

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