-
Hi! It is actually possible to do something like that: import { cache } from "swr"
cache.set(key, value) The problem is I can't see any documentation about that, except in the beta swr version, which I don't use and me I my team don't want to use something that isn't documented as it would mean that it's not the good way to do things. Do I miss something here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The exported cache is experimental feature in swr 0.x, which is not encouraged to use. It will be removed in swr 1.x. Feel free to report encountered issues or submit any feature request for it |
Beta Was this translation helpful? Give feedback.
The exported cache is experimental feature in swr 0.x, which is not encouraged to use. It will be removed in swr 1.x.
You can try the cache API in swr beta version, checkout https://swr.vercel.app/docs/advanced/cache
Feel free to report encountered issues or submit any feature request for it