Skip to content

Conversation

Cybermb
Copy link

@Cybermb Cybermb commented Sep 7, 2025

Fix type error Type 'null' is not assignable to type 'Object3D<Object3DEventMap>' when using useHelper(ref, ...) as ref can be null

Why

When using useHelper(ref, ...) you get type error

What

Added union type null because react refs can be null

Checklist

  • Ready to be merged

Fix type error `Type 'null' is not assignable to type 'Object3D<Object3DEventMap>'` when using useHelper(ref, ...) as ref can be null
Copy link

vercel bot commented Sep 7, 2025

@Cybermb is attempting to deploy a commit to the Poimandres Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

codesandbox-ci bot commented Sep 7, 2025

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.

@Cybermb Cybermb changed the title Update useHelper to accept nullable Object3D ref fix: Update useHelper to accept nullable Object3D ref Sep 7, 2025
@Cybermb Cybermb changed the title fix: Update useHelper to accept nullable Object3D ref fix(type): Update useHelper to accept nullable Object3D ref Sep 7, 2025
Copy link

vercel bot commented Sep 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
drei Ready Ready Preview Comment Sep 19, 2025 4:56pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant