forge42dev / remix-client-cache

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

Invalidate `normal` cache on `action`? #4

Open THOUSAND-SKY opened 6 months ago

THOUSAND-SKY commented 6 months ago

I used a bunch of normal caches to not fetch data that hasn't changed between page changes, but I was expecting an action on the same page to invalidate even the normal cache (in swr manner).

In essence I was expecting it to be a strategy that behaves like swr if action is triggered, but otherwise like normal.