aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-05-08 23:10:29 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-05-16 00:55:03 +0200
commitc96b88b66097d58f901be4ae2831883b7472ca86 (patch)
tree50e1226e43a0cf993fc2bac8673c0e9c5796ce7d /package.json
parentfix: vite dev server race condition (diff)
downloadsophie-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 'package.json')
-rw-r--r--package.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json
index ba09979..a43b84b 100644
--- a/package.json
+++ b/package.json
@@ -19,7 +19,7 @@
19 "type": "module", 19 "type": "module",
20 "main": "packages/main/dist/index.cjs", 20 "main": "packages/main/dist/index.cjs",
21 "scripts": { 21 "scripts": {
22 "clean": "rimraf coverage dist packages/*/dist packages/*/*.tsbuildinfo .vite", 22 "clean": "rimraf coverage dist 'packages/*/dist' 'packages/*/*.tsbuildinfo' .vite",
23 "test": "node --experimental-vm-modules --no-warnings $(yarn bin jest)", 23 "test": "node --experimental-vm-modules --no-warnings $(yarn bin jest)",
24 "test:ci": "yarn test --ci --coverage --reporters=default --reporters=jest-junit", 24 "test:ci": "yarn test --ci --coverage --reporters=default --reporters=jest-junit",
25 "test:integ": "electron scripts/electronJest.cjs --user-data-dir=userDataDir/integ --config=jest.integ.config.cjs --runInBand", 25 "test:integ": "electron scripts/electronJest.cjs --user-data-dir=userDataDir/integ --config=jest.integ.config.cjs --runInBand",