White page until data is loaded - loading skeleton wanted #632
-
I am using tanstack/router with tanstack/query and trying to figure out what the best way for my data loading is. I want preloading, but also loading skeletons on direct page load or refresh. It seems that the out-of-the-box preloading only works when I use the But ... that blocks navigation until data is loaded, therefor not showing the loading skeleton, which on app navigation would be fine, as I can use But on refresh or when users directly navigate to a page, they get a blank white screen until the data is loaded. This seems like a common use-case and I am sure there is an easy way to address this - but I seem to be unable to figure out how to do it. Any help is appreciated - thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It might be worth mentioning that loaders do not have to await anything, and can simply be used to start a preload. Have you tried that? |
Beta Was this translation helpful? Give feedback.
It might be worth mentioning that loaders do not have to await anything, and can simply be used to start a preload. Have you tried that?