Skip to content

Docs: revalidateTag in v16 docs shows profile as optional #85281

@alexanderbnelson

Description

@alexanderbnelson

What is the documentation issue?

revalidateTag() in v16 docs shows profile as optional when it's not - in the docs:

revalidateTag(tag: string, profile?: string | { expire?: number }): void;

https://nextjs.org/docs/app/api-reference/functions/revalidateTag#parameters

Type in revalidate.d.ts

export declare function revalidateTag(tag: string, profile: string | CacheLifeConfig): undefined;

Profile must be set. It's not optional. I have 150 instances of revalidateTag in my codebase. Would be great if this was optional or had a default.

Is there any context that might help us understand?

No additional context

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/app/api-reference/functions/revalidateTag#parameters

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions