We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 350493d commit 62b0eddCopy full SHA for 62b0edd
exercises/04.router/05.solution.cache/ui/index.js
@@ -56,9 +56,10 @@ function Root() {
56
const fetchPromise = fetchContent(nextLocation)
57
const nextContentPromise = createFromFetch(fetchPromise)
58
contentCache.set(historyKey, nextContentPromise)
59
+ startTransition(() => setContentKey(historyKey))
60
+ } else {
61
+ setContentKey(historyKey)
62
}
-
- startTransition(() => setContentKey(historyKey))
63
64
window.addEventListener('popstate', handlePopState)
65
return () => window.removeEventListener('popstate', handlePopState)
0 commit comments