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

Function unstable_cacheTag

packages/next/cache.js:66–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65let didWarnCacheTag = false
66function unstable_cacheTag() {
67 if (!didWarnCacheTag) {
68 didWarnCacheTag = true
69 const error = new Error(
70 '`unstable_cacheTag` was recently stabilized and should be imported as `cacheTag`. The `unstable` prefixed form will be removed in a future version of Next.js.'
71 )
72 console.error(error)
73 }
74 return cacheExports.cacheTag.apply(this, arguments)
75}
76
77cacheExports.unstable_cacheLife = unstable_cacheLife
78cacheExports.unstable_cacheTag = unstable_cacheTag

Callers 5

MyComponentFunction · 0.90
unstableTag1Function · 0.90
unstableTag2Function · 0.90
MyComponentFunction · 0.85

Calls 2

errorMethod · 0.65
applyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…