Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/01-app/03-api-reference/04-functions/refresh.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,9 @@ export async function POST() {
refresh()
}
```

## Version History

| Version | Changes |
| --------- | --------------------- |
| `v16.0.0` | `refresh` introduced. |
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,9 @@ If a route segment is marked to throw an error unless it's static, a Dynamic API
> - You may be able to avoid using `unstable_rethrow` if you encapsulate your API calls that throw and let the **caller** handle the exception.
> - Only use `unstable_rethrow` if your caught exceptions may include both application errors and framework-controlled exceptions (like `redirect()` or `notFound()`).
> - Any resource cleanup (like clearing intervals, timers, etc) would have to either happen prior to the call to `unstable_rethrow` or within a `finally` block.

## Version History

| Version | Changes |
| --------- | ------------------------------ |
| `v15.0.0` | `unstable_noStore` introduced. |
7 changes: 7 additions & 0 deletions docs/01-app/03-api-reference/04-functions/updateTag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ async function getData() {
While both `updateTag` and `revalidateTag` invalidate cached data, they serve different purposes:

- **`updateTag`**:

- Can only be used in Server Actions
- Next request waits for fresh data (no stale content served)
- Designed for read-your-own-writes scenarios
Expand Down Expand Up @@ -151,3 +152,9 @@ Use `revalidateTag` instead when:

- [`revalidateTag`](/docs/app/api-reference/functions/revalidateTag) - For invalidating tags in Route Handlers
- [`revalidatePath`](/docs/app/api-reference/functions/revalidatePath) - For invalidating specific paths

## Version History

| Version | Changes |
| --------- | ----------------------- |
| `v16.0.0` | `updateTag` introduced. |
Loading