forge42dev / remix-client-cache

Utility library to cache your client data in Remix.run
MIT License
157 stars 2 forks source link

`cacheClientLoader` fails to follow redirect from `loader`, with populated cache #5

Open THOUSAND-SKY opened 5 months ago

THOUSAND-SKY commented 5 months ago

A small example is here: https://stackblitz.com/edit/remix-run-remix-c3ava8?file=app%2Froutes%2Ftesting.tsx

Initially, the link to /testing redirects as expected.

However, if you disable the redirect in testing.tsx, visit /testing to populate the cache, then re-enable the redirect, it starts failing to redirect.