pmndrs / use-cannon

👋💣 physics based hooks for @react-three/fiber
https://cannon.pmnd.rs
2.78k stars 156 forks source link

Broken in v5 of react-three-fiber #118

Closed mattrossman closed 4 years ago

mattrossman commented 4 years ago

After updating to react-three-fiber version 5.0.0, use-cannon is giving the following error:

TypeError: e is not a function

In the following sandbox I just forked the "Simple example" from the README and changed the r3f version to 5.0.0, there you can see the error: https://codesandbox.io/s/r3f-cannon-instanced-physics-forked-gnk4j

drcmda commented 4 years ago

not 100% sure what it is, but if you switch to react17-rc1 it works.

drcmda commented 4 years ago

should be fixed in 5.0.1