Skip to content

Reconsider useObserver #2566

Answered by dvdzkwsk
dvdzkwsk asked this question in Q&A
Oct 8, 2020 · 14 comments · 29 replies
Discussion options

You must be logged in to vote

Fair points made by all. I appreciate all of the feedback and rest my case for now.

I still have some disagreements about the whole "it violates rules of hooks" arguments; however, given the other reasonable points made by everyone above I don't intend to die on this hill. With that, I'll close this for now. If anybody else feels more strongly than me please feel free to bump the issue.


Just for the sake of discussion and context, I did want to reply to the following:

Rendering on the other hand is generally dynamic - so logically you cannot have a rendering inside a hook

I stared at this for a long time and still couldn't quite come to grips with it. I'm intimately familiar with the r…

Replies: 14 comments 29 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by danielkcz
Comment options

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

@urugator
Comment options

Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
5 replies
@urugator
Comment options

@JSteunou
Comment options

@danielkcz
Comment options

@JSteunou
Comment options

@danielkcz
Comment options

Comment options

You must be logged in to vote
17 replies
@mweststrate
Comment options

@urugator
Comment options

@JabX
Comment options

@mweststrate
Comment options

@mweststrate
Comment options

Comment options

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

@jezzgoodwin
Comment options

@jezzgoodwin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
10 participants
Converted from issue

This discussion was converted from issue #2566 on October 27, 2020 07:15.