Skip to content

Automatic observer wrapping #1984

Answered by EmilTholin
baeharam asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @baeharam!

There was some nice discussion on this topic a while back here.

The creator of Legend-State finished with the following:

I've actually removed this behavior from Legend-State and I recommend you don't pursue it either. We found it to be extremely error prone, completely crashing apps with mismatched number of hooks errors. The errors are easy to reproduce in Next.js with just router.replace(...) in Next.js. I could not manage to figure out a way to solve all of the issues to make it stable. From the looks of the issues in the Signals repo they haven't either.

Also, the React team has asked me not to do it and said it is likely to change in a future version. So all in all …

Replies: 1 comment 2 replies

Comment options

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

@EmilTholin
Comment options

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