T
TanStack7mo ago
itchy-amethyst

Disable ViewTransition in specific routes

with defaultViewReansition set to true globally is there a wa y to opt out in certain pages , in my case it's trigerring every time i change the search query tracking which tab is the current one and it's less than ideal
3 Replies
itchy-amethyst
itchy-amethystOP7mo ago
found it , the option is not on the router level but on the Link and navigate
navigate({
search: { tab: value as typeof tab,},
viewTransition: false,
});
navigate({
search: { tab: value as typeof tab,},
viewTransition: false,
});
rival-black
rival-black7mo ago
would you need this as a route option?
itchy-amethyst
itchy-amethystOP7mo ago
i guess , because triggering a view transition one every search param change might get annoying in certain sections

Did you find this page helpful?