Skip to content

How to prevent async atomWithDefault suspense after resolving it in a route loader? #2841

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

You must be logged in to vote

unwrap(countAtom, () => 1 /* or any default value */) should do. While there's no exact case, you might find Jotai Tips interesting.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Zebeqo
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