Should ESC.Component
switch to useEffect
?
#304
Replies: 1 comment 1 reply
-
Thanks for exploring this further. If changing to a I don't think using But, granted, both my React and especially R3F are a little rusty since I haven't actively used them in quite some time. Maybe I can humbly ping @wiledal to weigh in? 🙏 |
Beta Was this translation helpful? Give feedback.
-
Hi.
As described in issue #303, I had problems connecting
@react-three/rapier
'sRigidBody
via:https://stackblitz.com/edit/vitejs-vite-dt2zjv?file=src/App.tsx
I got the example to work 🎉 by forking the
ESC.Component
fromcreateReactAPI
. The "fix" was to change the 2useIsomorphicLayoutEffect
s touseEffect
.This is fine for me as I a can continue exploring
miniplex
. Not really sure of what the implications of changing touseEffect
are and if it would improve the library.@hmans Any seconds thoughts?
Beta Was this translation helpful? Give feedback.
All reactions