client-side transition issue
Unanswered
Azawakh posted this in #help-forum
AzawakhOP
It takes some time to change the route when we do router.push(), it is client-side transition,
How can we remove client-side transition or can we sow a loader in client side transition
How can we remove client-side transition or can we sow a loader in client side transition
3 Replies
@Azawakh It takes some time to change the route when we do router.push(), it is client-side transition,
How can we remove client-side transition or can we sow a loader in client side transition
you can use the
useTransition [hook](https://react.dev/reference/react/useTransition) to get a pending state when redirecting.@Azawakhsolved?
AzawakhOP
@B33fb0n3 used next/link, it solved the issue