Replies: 1 comment 3 replies
-
const state = useProxy(GlobalStore.data.obj1);
// 👆 means like this 👇
const foo = GlobalStore.data.obj1;
const state = useProxy(foo);
// When you do this:
GlobalStore.data = {obj1: {text: 'world'}}
// `foo` doesn't change |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
zmm2tysu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
the redux tools record globalStore is changed, but UI is not rerender.
Hi, I want to know why this dosent work when I click the update button.If there is some concept I have missed or mixed, pls let me know, thx very much!
Beta Was this translation helpful? Give feedback.
All reactions