Skip to content

atomWithDefault: setting RESET twice only calls getDefault once #2737

Answered by dai-shi
martinhath asked this question in Ideas
Discussion options

You must be logged in to vote

This is by design.

set(something); // override
set(RESET); // triggers re-evaluate
set(RESET); // shouldn't re-evaluate, should be NO-OP

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@martinhath
Comment options

@dai-shi
Comment options

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