-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
area: typescriptTypescript issuesTypescript issuesstatus: won't fixThis will not be worked onThis will not be worked on
Milestone
Description
🐛 Bug Report
I was playing with r3f and react-spring and had a little problem (which can be solved with the as
keyword)
const props = useSpring({
scale: active ? [1.5, 1.5, 1.5] : [1, 1, 1],
color: hovered ? 'hotpink' : 'gray',
});
// in the return
<mesh // or animated.mesh
scale={props.scale} // here's the type error
>
// it says: Type 'SpringValue<number[]>' is not assignable to type 'Vector3'.
If you can guide me some about the source code, I think I may solve it and send a PR.
Metadata
Metadata
Assignees
Labels
area: typescriptTypescript issuesTypescript issuesstatus: won't fixThis will not be worked onThis will not be worked on