diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-05-08 23:10:29 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-05-16 00:55:03 +0200 |
commit | c96b88b66097d58f901be4ae2831883b7472ca86 (patch) | |
tree | 50e1226e43a0cf993fc2bac8673c0e9c5796ce7d /packages/service-preload/tsconfig.json | |
parent | fix: vite dev server race condition (diff) | |
download | sophie-c96b88b66097d58f901be4ae2831883b7472ca86.tar.gz sophie-c96b88b66097d58f901be4ae2831883b7472ca86.tar.zst sophie-c96b88b66097d58f901be4ae2831883b7472ca86.zip |
fix: react suspense race condition
The top-level Suspense might trigger before the StoreProvider sets the
store, which causes an error to be thrown in the useStore hook.
We pass the store explicitly as a prop into the components that should
load before the Suspense, which gets rid of the error.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/service-preload/tsconfig.json')
0 files changed, 0 insertions, 0 deletions