-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Prepping for a workshop and wanted to use this paradigm, but it feels broken and we should talk about it:
- https://codesandbox.io/s/agitated-colden-0v0mp?file=/src/index.js
- Hover over item (it will start prefetching, which artificially takes 3 seconds)
- Click on item before prefetching completes
- Post view is shown in the "hard"
isLoading
state.
Expected:
- Click on item before prefetching completes
- Post view is shown using the
initialData
(imagine a preview/partial version of the data) - Full post is loaded as the original fetch from the prefetch call completes
Thoughts?
PS. This is also the behavior in 2.x
balazsorban44
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request