MCPcopy
hub / github.com/vercel/next.js / cloneRevalidationState

Function cloneRevalidationState

packages/next/src/server/revalidation-utils.ts:35–45  ·  view source on GitHub ↗
(store: WorkStore)

Source from the content-addressed store, hash-verified

33>
34
35function cloneRevalidationState(store: WorkStore): RevalidationState {
36 return {
37 pendingRevalidatedTags: store.pendingRevalidatedTags
38 ? [...store.pendingRevalidatedTags]
39 : [],
40 pendingRevalidates: { ...store.pendingRevalidates },
41 pendingRevalidateWrites: store.pendingRevalidateWrites
42 ? [...store.pendingRevalidateWrites]
43 : [],
44 }
45}
46
47function diffRevalidationState(
48 prev: RevalidationState,

Callers 1

withExecuteRevalidatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected