In your course, you demonstrate using pendingMilliseconds to prevent loading indicator flashes in route loaders.
When using TanStack Query with isFetching/isPending flags in components, we face the same UX problem.
What's the recommended pattern to delay/debounce Query flags to prevent loading flashes?
Should we create a custom hook, use Query config, or implement differently?
In your course, you demonstrate using
pendingMillisecondsto prevent loading indicator flashes in route loaders.When using TanStack Query with
isFetching/isPendingflags in components, we face the same UX problem.What's the recommended pattern to delay/debounce Query flags to prevent loading flashes?
Should we create a custom hook, use Query config, or implement differently?