Skip to content

Commit

Permalink
remove unnecessary PPR branch in non-PPR reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Jan 31, 2024
1 parent 55c3baa commit 3cd05fb
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function navigateReducer_noPPR(
prefetchQueue.bump(data!)

return data!.then(
([flightData, canonicalUrlOverride, postponed]) => {
([flightData, canonicalUrlOverride]) => {
// we only want to mark this once
if (prefetchValues && !prefetchValues.lastUsedTime) {
// important: we should only mark the cache node as dirty after we unsuspend from the call above
Expand Down Expand Up @@ -226,11 +226,8 @@ function navigateReducer_noPPR(
)

if (
(!applied &&
prefetchEntryCacheStatus === PrefetchCacheEntryStatus.stale) ||
// TODO-APP: If the prefetch was postponed, we don't want to apply it
// until we land router changes to handle the postponed case.
postponed
!applied &&
prefetchEntryCacheStatus === PrefetchCacheEntryStatus.stale
) {
applied = addRefetchToLeafSegments(
cache,
Expand Down

0 comments on commit 3cd05fb

Please sign in to comment.