Skip to content

Remove unused atoms from memory? #2588

Answered by dai-shi
rafark asked this question in Q&A
Discussion options

You must be logged in to vote

delete items['10'].

Think of Jotai store being just a WeakMap (and it actually is, except for tracking "mounted" atoms).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rafark
Comment options

Answer selected by rafark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants