Force re-render components after local store is updated from iframe

334 Views Asked by At

I am building a Shopify app with React and Apollo, using apollo-link-state to manage a local data store.

Because of the way Shopify embedded apps are done, I end up updating the local data store from a modal, which is technically an iframe pointing to the same URL as my app.

My problem is that the main app doesn't realize that the local store has been updated (from the iframe), and components are thus not re-rendered.

Is there a way to manually force apollo-link-state to check if the data has changed?

0

There are 0 best solutions below