Skip to content

Creating atoms without initial values would be useful #2671

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

You must be logged in to vote

Your workaround seems good. I would use Symbol() instead of {}.

We have atomWithPending (in jotai-suspense, but it can be defined pretty easily.)
But, I'm not sure if it works with useHydrateAtoms.

Replies: 1 comment 1 reply

Comment options

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

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