Skip to content

Commit 15cd257

Browse files
committed
Instantiate worker on connect, call it before init inside useEffect
1 parent b8d3929 commit 15cd257

File tree

7 files changed

+122
-97
lines changed

7 files changed

+122
-97
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"prettier-fix": "npm run prettier-fix --workspaces",
4141
"postinstall": "husky install"
4242
},
43+
"type": "module",
4344
"workspaces": [
4445
"packages/cannon-worker-api",
4546
"packages/react-three-cannon",

0 commit comments

Comments
 (0)