Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
eee419ea
Unverified
Commit
eee419ea
authored
Oct 29, 2025
by
Joseph
Committed by
GitHub
Oct 29, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: revalidateTag requires second argument (#85284)
Closes:
https://github.com/vercel/next.js/issues/85281
parent
f3656691
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
revalidateTag.mdx
docs/01-app/03-api-reference/04-functions/revalidateTag.mdx
+3
-1
No files found.
docs/01-app/03-api-reference/04-functions/revalidateTag.mdx
View file @
eee419ea
...
@@ -26,7 +26,7 @@ The revalidation behavior depends on whether you provide the second argument:
...
@@ -26,7 +26,7 @@ The revalidation behavior depends on whether you provide the second argument:
## Parameters
## Parameters
```ts
```ts
revalidateTag(tag: string, profile
?
: string | { expire?: number }): void;
revalidateTag(tag: string, profile: string | { expire?: number }): void;
```
```
-
`tag`
:
A
string
representing
the
cache
tag
associated
with
the
data
you
want
to
revalidate
.
Must
not
exceed
256
characters
.
This
value
is
case
-
sensitive
.
-
`tag`
:
A
string
representing
the
cache
tag
associated
with
the
data
you
want
to
revalidate
.
Must
not
exceed
256
characters
.
This
value
is
case
-
sensitive
.
...
@@ -52,6 +52,8 @@ async function getData() {
...
@@ -52,6 +52,8 @@ async function getData() {
}
}
```
```
>
**
Good
to
know
**:
The
single
-
argument
form
`revalidateTag(tag)`
is
deprecated
.
It
currently
works
if
TypeScript
errors
are
suppressed
,
but
this
behavior
may
be
removed
in
a
future
version
.
Update
to
the
two
-
argument
signature
.
## Returns
## Returns
`revalidateTag`
does
not
return
a
value
.
`revalidateTag`
does
not
return
a
value
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment