alloc / alloc/saus

Export `clearCache` helper

Open
#34 1 comment 0 reactions 0 assignees View on GitHub
backlog enhancement runtime
Dominant language
TypeScript
Stars
38
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.