#loading on loader

1 messages · Page 1 of 1 (latest)

rough fractal
#

Hi, maybe anyone know how i can add loading when my route loader downloading data? and maybe instantly change route? something like async

west heath
#

I think you have to use useTransition hook. Please refer the docs for that.

urban vigil
#

That hooks is renamed to useNavigation in RR 6.4 to avoid confusion with the react 18 useTransition hook

#

If you want instant route change, then you can look into using defer/Await and show a skeleton UI on the destination page