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 8714166 commit 41b35f3
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 41b35f3

Please sign in to comment.