Imported from @nicholaschiang's original Linear issue TS-98.
After calling our sync APIs, Remix's useFetcher() will automatically revalidate each page's loader data. However, our Redis cache returns stale data (SWR) and thus e.g. the article metadata shown in a list won't be up-to-date with the just-synced data.
I can fix this issue by updating the Redis SWR cache manually in our sync APIs.
Imported from @nicholaschiang's original Linear issue TS-98.
After calling our sync APIs, Remix's
useFetcher()
will automatically revalidate each page'sloader
data. However, our Redis cache returns stale data (SWR) and thus e.g. the article metadata shown in a list won't be up-to-date with the just-synced data.I can fix this issue by updating the Redis SWR cache manually in our sync APIs.