T
TanStack•2y ago
fair-rose

Link component is not type safe when mapping over (const) array

No description
No description
No description
11 Replies
absent-sapphire
absent-sapphire•2y ago
yeah
fair-rose
fair-roseOP•2y ago
? it was working before I updated it to 1.19.2
absent-sapphire
absent-sapphire•2y ago
updated from which version?
fair-rose
fair-roseOP•2y ago
1.16.2
absent-sapphire
absent-sapphire•2y ago
which error did this give you?
fair-rose
fair-roseOP•2y ago
No description
absent-sapphire
absent-sapphire•2y ago
cc @Chris Horobin
eastern-cyan
eastern-cyan•2y ago
We accepted template literal types already?
absent-sapphire
absent-sapphire•2y ago
don't think so at least not in this form wouldn't to have to be /workspace/$someId/team ?
eastern-cyan
eastern-cyan•2y ago
Has to be /workspace/$workspaceId/team
fair-rose
fair-roseOP•2y ago
yeah, my bad, I refactored the code (but the template literals was still working lol, good thing I reverted the version, otherwise I wouldn't have seen I made the mistake 😄 ) also, after updating to latest version this is fixed thanks @Manuel Schiller (still have the same problem for layout routes though)

Did you find this page helpful?