Are there any easy ways to scope pending UI states? Imagine a “user profile” switcher in the app template navigation that is persistent throughout the app, that when interacted with allows users to switch users via useFetcher hook. When “switching” I am seeing page level “spinners” tied into useNavigation also initialized. What are folks doing to solve this type of problem?
#Pending UI - Managing Transition Collisions
1 messages · Page 1 of 1 (latest)
Ah, we can scope page level transitions by comparing formAction with location found on useNavigation to see if a transition is happening on the same page.
But this presents a problem related to redirects 🤔
I wonder if anyone knows if it is safe to use _isFetchActionRedirect or _isRedirect on location.state returned from useNavigation?