unstable_noStore opts a component out of caching at the component level. Use it when cached responses interfere with Next.js streaming and the component must fetch fresh data. section 8.1.1
Disable caching before streaming data
Import the function from next/cache, call it inside the async component, and then perform the streaming operation:\n\nimport { unstable_noStore as noStore } from 'next/cache';\n\nexport default async function Component() {\n noStore();\n const result = await streamText({...});\n ...\n}\n\nThis is especially useful when deployment caching prevents streaming from functioning correctly. section 8.1.1
import { unstable_noStore as noStore } from 'next/cache';
export default async function Component() {
noStore();
const result = await streamText({...});
...
}
Shows the complete import, component-level call, and streaming call in one implementation example. section 8.1.1
