Replies: 3 comments 2 replies
-
My recommendation is to use As you use promise in your store, you probably need |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Dai-shi. Can you provide a working example? I tried to use |
Beta Was this translation helpful? Give feedback.
2 replies
-
Per answer, adding export const ValtioRoot: FC = () => {
const state = useRef(createValtioState());
return (
<Suspense fallback={<></>}>
<ValtioController state={state.current} />
<ValtioView state={state.current} />
</Suspense>
);
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Asking for a friend who's allergic to global scope stores.
If I have may components, and I want each one to create their own scope, what's the best way to do that?
I tried a few things, but all of them result in an infinite loop:
Is there no way to create state inside of the component?
Beta Was this translation helpful? Give feedback.
All reactions