Closed abernier closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
drei | ✅ Ready (Inspect) | Visit Preview | May 1, 2024 9:11am |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
This is actually what the React 19 types do since useRef
can lead to confusing mutable/immutable types.
This is actually what the React 19 types do since
useRef
can lead to confusing mutable/immutable types.
IIUC, this PR is useless? (handled by next React19 updated types)
Yes, this will be resolved by React 19 and the next major of both R3F/Drei. #1941
Why
Passing a mutable
ref={}
makes TS complains, here in the story:What
so, I've naively convert
useHelper
's 1st paramobject3D
into a simpleRefObject
(rather aMutableRefObject
)Checklist
I'm really not sure, how "safe" this is / how required this
ref
was to be mutable...