We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ba34c1 commit 86259b2Copy full SHA for 86259b2
packages/next/src/server/node-environment-extensions/utils.tsx
@@ -104,9 +104,13 @@ export function io(expression: string, type: ApiType) {
104
)
105
}
106
} else {
107
+ // We're in the Runtime stage.
108
+ // We only error for Sync IO in the Runtime stage if the route has a runtime prefetch config.
109
+ // This check is implemented in `stageController.canSyncInterrupt()` --
110
+ // if runtime prefetching isn't enabled, then we won't get here.
111
+
112
let accessStatement: string
113
let additionalInfoLink: string
- message = `Route "${workStore.route}" used ${expression} before accessing either uncached data (e.g. \`fetch()\`) or awaiting \`connection()\`.`
114
115
switch (type) {
116
case 'time':
0 commit comments