Skip to content

Conversation

@ztanner
Copy link
Member

@ztanner ztanner commented Oct 20, 2025

No description provided.

@ijjk ijjk added created-by: Next.js team PRs by the Next.js team. type: next labels Oct 20, 2025
Copy link
Member Author

ztanner commented Oct 20, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ztanner ztanner marked this pull request as ready for review October 20, 2025 18:40
@ztanner ztanner requested a review from ijjk October 20, 2025 18:40
@ztanner ztanner merged commit c6ff4d0 into canary Oct 20, 2025
138 of 150 checks passed
@ztanner ztanner deleted the 10-20-_cache_components_guard_against_setcachestatus_since_its_conditionally_defined branch October 20, 2025 18:41
// in case a previous render bypassed the cache.
if (process.env.NODE_ENV === 'development') {
setCacheStatus!('ready', htmlRequestId, requestId)
if (process.env.NODE_ENV === 'development' && setCacheStatus) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a bug. How do you hit this branch with setCacheStatus not being defined?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added to every branch so I didn't have to think about if it was safe to unconditionally invoke, but the real one that was wrong was the bypass case on line 1908 which was only gated on bypassCachesInDev

@github-actions github-actions bot added the locked label Nov 4, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants