Store

Key-value store.

When to use

  • Create a cache

  • Share values or functions between hooks

  • Share values or functions between hooks and UI context

The values aren't persisted when your plugin is reloaded.

How to use

$store makes state sharing between runtimes possible.

Example

Last updated