Skip to content

How to replace useObserver in store hooks? #2712

Answered by danielkcz
Max-Zviagintsev asked this question in Q&A
Discussion options

You must be logged in to vote

If don't tell us what errors you have, we can't really help you :)

Either way, just drop useObserver and stick observer on the consuming component. It can "see" inside the hook call and access to observables.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@Max-Zviagintsev
Comment options

@urugator
Comment options

Answer selected by danielkcz
Comment options

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

@Max-Zviagintsev
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
3 participants