-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Dock component: useTransform #376
Comments
jercomio
changed the title
[DOCK] Dock component: BUG, useTransform
[BUG] Dock component: useTransform
Oct 14, 2024
@jercomio You probably didn't pass |
I have fixed the bug |
This was referenced Oct 22, 2024
Closed
Thanks all |
Hey this issue is now fixed with this PR #454 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Next.js (latest) application, there is a bug because the property
mouseX
is undefined (line 86, dock.tsx). See the declare functionuseTransform
inindex.d.ts
file.input: MotionValue<I>
must be an array like the example :const z = useTransform([x, y], ([latestX, latestY]) => latestX * latestY)
So, to resolve this bug, write
mouseX = []
instead ofmouseX
.The text was updated successfully, but these errors were encountered: