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 27, 2024
1 parent 93e4bb8 commit 85ef571
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 85ef571

Please sign in to comment.