I have a React SPA with MemoryRouter and Redux. It's an embedded app, so it's being loaded inside an iframe. The problem is, upon navigation from the app, the entire SPA refreshes causing the app state loss. I've applied few fixes to make it work but none of them look working. Here is what I tried.
1. useClientRouting hook
I've used shopify client router inside the Memory router as given.