Skip to content
Discussion options

You must be logged in to vote

Personally I'd probably use the set_pending prop on Transition, which takes a callback that will run whenever it's loading. This allows you to provide a visual cue that it's loading the new data, since it doesn't fall back to the fallback.

There isn't a loading signal or similar on LocalResource or on Resource. The primary resource is that when we had them, they made it very easy to shoot yourself in the foot by causing hydration errors when they were used outside Suspense/Transition.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nopeNoshishi
Comment options

Answer selected by nopeNoshishi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants