Skip to content

Subscribe on changes. #530

Closed Answered by dai-shi
nosferatu500 asked this question in Q&A
Aug 24, 2022 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

How about this?

const { store1: snap1, store2: snap2 } = useSnapshot(useMemo(() => proxy({ store1, store2 }), []);

If possible, I'd define proxy({ store1, store2 }) outside component.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@dai-shi
Comment options

@nosferatu500
Comment options

@dai-shi
Comment options

@nosferatu500
Comment options

@dai-shi
Comment options

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