Optional
storage?: Storage(Advanced) You can provide the backing cache object
Access to the backing cache.
Useful for doing cache.set(key, null)
, and force a re-fetch.
Suspend your tree while the async function resolves, it takes a key
, and return its promise's value.
This will not call the function again if it changes, only when the key changes! If you don't need to respond to different keys, you can use createSuspense instead.
Generated using TypeDoc
Create a keyed suspense cache.