T
TanStack3mo ago
harsh-harlequin

Cannot `router.navigate` to a AnyRedirect?

Before the devinxi I was able to do the following:
if (isRedirect(data)) {
await router.navigate(data);
}
if (isRedirect(data)) {
await router.navigate(data);
}
But now this throws a TS error:
Type 'AnyRedirect' has no properties in common with type 'NavigateOptions<RouterCore<Route<any, "/", ....
Type 'AnyRedirect' has no properties in common with type 'NavigateOptions<RouterCore<Route<any, "/", ....
Not sure how I should handle those now
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?