"Type instantiation is excessively deep and possibly infinite." error occurring on `navigate` - TanStack