Repository navigation
fix(cache): keep updateTag misuse catchable - #2311
Conversation
|
/bigbonk review for issues |
commit: |
|
|
Working tree clean. My review is complete. Review SummaryThis is a correct, well-scoped fix. No actionable issues found. What the PR doesChanges Why it's correctThe previous I verified this matches Next.js exactly. In export function updateTag(tag: string) {
const workStore = workAsyncStorage.getStore()
if (!workStore || workStore.page.endsWith('/route')) {
throw new Error('updateTag can only be called from within a Server Action. ...')
}
return revalidate([encodeCacheTag(tag)], `updateTag ${tag}`, undefined)
}The PR's shape is now a faithful match. Verification performed
Minor observations (non-blocking)
Solid fix with correct Next.js parity, a ported regression test, and a focused fixture. |
Performance benchmarksCompared 0 improved · 0 regressed · 6 within ±1.5%
View detailed results and traces 🟢 improvement · 🔴 regression · ⚫ change below 1.5% · paired base/head |
Summary
updateTag()invalid-context errors synchronouslyNext.js parity
Fixes the server crash behind the connection-refused failures in
test/e2e/app-dir/app-static/app-static.test.tsfrom run 28143992598.Validation
Full suites are deferred to CI.