Cache and Route Redirection Issues in Remix with Shopify

:police_car_light: Cache and Route Redirection Issues in Remix with Shopify :police_car_light:

Hello everyone,

We’ve noticed an issue in our Shopify app built with Remix related to navigation between routes on the frontend. When switching between screens, there is a delay of several seconds before the redirection happens, which impacts the user experience.

:hammer_and_wrench: Diagnosis

  • It seems the issue is related to the Shopify authentication object, affecting how sessions are managed between routes.
  • Based on our investigation, this issue appears to be Shopify-wide, as other developers have observed similar behavior in their apps.
  • We haven’t seen this problem before, so we believe it may have started a few months ago, possibly due to a recent change in Shopify.
  • The only workaround we’ve considered so far is moving all requests to the client instead of processing them on the server, but this would require a significant change in our implementation.

:pushpin: Questions for the community

  1. Has anyone else experienced cache and redirection issues between routes in Shopify with Remix?
  2. Has Shopify made any recent changes that could be causing this behavior?
  3. Is there a better solution to handle this issue without having to change the entire app architecture?

Any insights or suggestions would be greatly appreciated. :rocket:

1 Like

@Julian_Bischoff
Yes i am also facing the same issue " 1. Has anyone else experienced cache and redirection issues between routes in Shopify with Remix?"

1 Like