Skip to content

Is there any plan for a atomValue function that doesn't use promises? #2519

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

You must be logged in to vote

Oh, were you talking about it?
Of course, I've thought about it, quite a lot.
There are two hurdles:

  • React has to support use(Observable) or something alike.
  • Yet, React prohibits to combine two use() calls in a non-hook function.

It's very unlikely that both are solved at any time soon. So, consider that we don't have a hope.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sebinsua
Comment options

@dai-shi
Comment options

Answer selected by sebinsua
@sebinsua
Comment options

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