Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 12 - deprecated revalidatePath #932

Open
anpa opened this issue Nov 21, 2024 · 0 comments
Open

Chapter 12 - deprecated revalidatePath #932

anpa opened this issue Nov 21, 2024 · 0 comments

Comments

@anpa
Copy link

anpa commented Nov 21, 2024

Chapter 12 uses the revalidatePath function which is marked as deprecated in:

_node_modules/.pnpm/[email protected][email protected][email protected]_f7vxvinj2tmc3s2kx24vpyvnma/node_modules/next/dist/server/web/spec-extension/revalidate.d.ts_
/**
 * @deprecated this function has been deprecated in favor of expirePath()
 * This function allows you to purge [cached data](https://nextjs.org/docs/app/building-your-application/caching) on-demand for a specific path.
 *
 * Read more: [Next.js Docs: `revalidatePath`](https://nextjs.org/docs/app/api-reference/functions/revalidatePath)
 */
export declare function revalidatePath(originalPath: string, type?: 'layout' | 'page'): void;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant