Issue with ref type when using createLink with Motion for React (prev Framer Motion)
Repro: https://codesandbox.io/p/devbox/github/KirillTregubov/tanstack-router-repro
Related discussion: https://github.com/TanStack/router/discussions/2375
I want to add this example to the docs, but I am getting a ref error inside my project so I would appreciate some help resolving this issue before showing others how to accomplish this.
When I define the motion link component:
And then consume it, passing in a ref:
I get a type error on the ref:
Thanks in advance!
GitHub
Using Tanstack Router Link with Framer Motion · TanStack router · D...
A couple months back I needed to animate a Link with Framer Motion. I have struggled with the implementation; trying both the createLink and LinkOptions APIs. I think I have finally landed on a ver...
0 Replies