Simplifying react-router navigation based on storage changes
Hello guys, is there a way using Plasmo to navigate React-Router routes from a content script or background service worker?
Example:
In my Plasmo extension, the content script detects changes and sends them to the background service worker (BGSW). The BGSW then updates the item in storage. The code above handles routing based on the item state and whether it has changed.
Is there a cleaner or more efficient way to handle this? Thanks!
0 Replies