T
TanStack•2y ago
fascinating-indigo

Getting 'Type instantiation is excessively deep and possibly infinite.' TS error using matchRoute

I am using matchRoute to see if the user is on /account
const matchRoute = useMatchRoute();

const isAccount = matchRoute({ to: '/account' });
const matchRoute = useMatchRoute();

const isAccount = matchRoute({ to: '/account' });
which is resulting in this TS error:
Type instantiation is excessively deep and possibly infinite.
Type instantiation is excessively deep and possibly infinite.
This is reproducable in the live examples as well if we try to use matchRoute
No description
2 Replies
sunny-green
sunny-green•2y ago
GitHub
Release v1.15.5 · TanStack/router
Version 1.15.5 - 1/30/2024, 6:49 PM Changes Fix avoid Type instantiation is excessively deep and possibly infinite error in useMatchRoute (0982c57) by Manuel Schiller Packages @tanstack/react-ro...
fascinating-indigo
fascinating-indigoOP•2y ago
You guys are so fast 😄 thanks man, appreciate it!

Did you find this page helpful?