Closed bjornstar closed 2 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/pmndrs/use-cannon/8JgFEQx5e5Hayd8427hFSr8zEF2n
✅ Preview: https://use-cannon-git-fork-bjornstar-improve-context-and-f9d253-pmndrs.vercel.app
@react-three/cannon
usePhysicsContext
hook, which immediately gives you a clear error message when trying to access physics components or hooks outside of a Physics provider.context
tophysicsContext
useDebugContext
hook for consistencyProvider.tsx
] Renamed tophysics-provider.tsx
Debug.tsx
] Renamed todebug-provider.tsx
(Still exported as Debug & DebugProps)physics-provider.tsx
] One useState call that contains the whole contextphysics-provider.tsx
] bodies is not a ref, no need to access currentsetup.ts
] Removed, split into more appropriately named modulesworker.d.ts
] Removed, belongs in cannon-worker-apipackage.json
] Use dependencies rather than peerDependencies.eslintrc.json
] Clean up.eslintrc.json
] Disallow non-null assertions@pmndrs/cannon-worker-api
src/worker
] self.postMessage should be typed to ensure we match API typessrc/worker
] Stop using non-null assertionsaddBodies
] If the body or target does not have a uuid, don't process the eventaddRay
] If the body does not have a uuid, don't process the eventpackage.json
] Has one dependency:three
.eslintrc.json
] Clean up.eslintrc.json
] Disallow non-null assertions@react-three/cannon-examples
.eslintrc.json
] Clean up.eslintrc.json
] Disallow non-null assertionspackage.json
] Only devDependenciestsconfig.json
] Alphabetize@pmndrs/use-cannon
package.json
] Add .json, .jsx, & .tsx to lint-staged filesyarn.lock
] Updated dependencies