Skip to content

Commit 1de658d

Browse files
committed
fixup! updates for Next 16
1 parent 9b465c9 commit 1de658d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

examples/e2e/experimental/next.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ const nextConfig: NextConfig = {
44
/* config options here */
55
cleanDistDir: true,
66
output: "standalone",
7+
cacheComponents: true,
78
typescript: {
89
// Ignore type errors during build for now, we'll need to figure this out later
910
ignoreBuildErrors: true,
1011
},
11-
experimental: {
12-
cacheComponents: true,
13-
},
1412
};
1513

1614
export default nextConfig;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { revalidateTag } from "next/cache";
22

33
export function GET() {
4-
revalidateTag("fullyTagged");
4+
revalidateTag("fullyTagged", { expire: 0 });
55
return new Response("DONE");
66
}

examples/e2e/experimental/src/components/cached.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { unstable_cacheLife, unstable_cacheTag } from "next/cache";
1+
import { cacheLife, cacheTag } from "next/cache";
22

33
export async function FullyCachedComponent() {
44
"use cache";
@@ -11,7 +11,7 @@ export async function FullyCachedComponent() {
1111

1212
export async function FullyCachedComponentWithTag() {
1313
"use cache";
14-
unstable_cacheTag("fullyTagged");
14+
cacheTag("fullyTagged");
1515
return (
1616
<div>
1717
<p data-testid="fully-cached-with-tag">{Date.now()}</p>
@@ -21,7 +21,7 @@ export async function FullyCachedComponentWithTag() {
2121

2222
export async function ISRComponent() {
2323
"use cache";
24-
unstable_cacheLife({
24+
cacheLife({
2525
stale: 1,
2626
revalidate: 5,
2727
});

0 commit comments

Comments
 (0)