saus icon indicating copy to clipboard operation
saus copied to clipboard

Export `clearCache` helper

Open aleclarson opened this issue 3 years ago • 1 comments

This clears the cache that defineStateModule loaders use.

You can call clearCache in the then callback of a renderer to ensure defineStateModule loaders are called on each render. Or you can pass a state module to it (along with any arguments) to clear a specific entry in the cache whenever you need.

aleclarson avatar Jan 10 '22 18:01 aleclarson

This could probably work on the client side too

aleclarson avatar Jan 10 '22 18:01 aleclarson