silverwolf-x/project / errors /invalid-instant-configuration.mdx
silverwolf-x's picture
download
raw
740 Bytes
---
title: Invalid Instant Configuration
---
## Why This Message Occurred
You provided an invalid configuration for `export const unstable_instant` in a Layout or Page file.
### Example of Correct Usage
#### Static Prefetching
```tsx filename="app/.../layout.tsx"
export const unstable_instant = {
prefetch: 'static',
}
```
#### Runtime Prefetching
```tsx filename="app/[slug]/page.tsx"
export const unstable_instant = {
prefetch: 'runtime',
samples: [
{
cookies: [{ name: 'experiment', value: 'A' }],
params: { slug: 'example' },
},
],
}
```
#### Indicating that there is no instant UI
This does not disable prefetching.
```tsx filename="app/[slug]/page.tsx"
export const unstable_instant = false
```

Xet Storage Details

Size:
740 Bytes
·
Xet hash:
5a8762c477d982cc30c58f5ec859d452934ca132ab06aebced15d36a728ebb59

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.