{"record":{"id":"ce1adf93128a2212","repo":"vercel/swr","slug":"missing-pre-initiated-data-for-serialized-key-k","errorCode":null,"errorMessage":"Missing pre-initiated data for serialized key \"${key}\" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set \"strictServerPrefetchWarning: false\" to disable this warning.","messagePattern":"Missing pre-initiated data for serialized key \"(.+?)\" during server-side rendering\\. Data fetching should be initiated on the server and provided to SWR via fallback data\\. You can set \"strictServerPrefetchWarning: false\" to disable this warning\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/index/use-swr.ts","lineNumber":434,"sourceCode":"      },\n      () => {\n        hydrationRef.current = true\n        return hydrationRef\n      }\n    )\n  const isHydration = hydrationRef.current\n  // During the initial SSR render, warn if the key has no data pre-fetched via:\n  // - fallback data\n  // - preload calls\n  // - initial data from the cache provider\n  // We only warn once for each key during Hydration.\n  if (\n    strictServerPrefetchWarning &&\n    isHydration &&\n    !suspense &&\n    hasKeyButNoData\n  ) {\n    console.warn(\n      `Missing pre-initiated data for serialized key \"${key}\" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set \"strictServerPrefetchWarning: false\" to disable this warning.`\n    )\n  }\n\n  // Resolve the default validating state:\n  // If it's able to validate, and it should revalidate when mount, this will be true.\n  // - Suspense mode and there's stale data for the initial render.\n  // - Not suspense mode and there is no fallback data and `revalidateIfStale` is enabled.\n  // - `revalidateIfStale` is enabled but `data` is not defined.\n  const shouldDoInitialRevalidation = (() => {\n    if (!key || !fetcher) return false\n    // If it's paused, we skip revalidation.\n    if (getConfig().isPaused()) return false\n    // if a key already has revalidators and also has error, we should not trigger revalidation\n    if (hasRevalidator && !isUndefined(error)) return false\n    // If `revalidateOnMount` is set, we take the value directly.\n    if (isInitialMount && !isUndefined(revalidateOnMount))\n      return revalidateOnMount","sourceCodeStart":416,"sourceCodeEnd":452,"githubUrl":"https://github.com/vercel/swr/blob/7173e55b2a175dee455612c5fa067383345c392f/src/index/use-swr.ts#L416-L452","documentation":"Error \"Missing pre-initiated data for serialized key \"${key}\" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set \"strictServerPrefetchWarning: false\" to disable this warning.\" thrown in vercel/swr.","triggerScenarios":"Thrown at src/index/use-swr.ts:434 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7173e55b2a175dee455612c5fa067383345c392f","analyzedAt":"2026-08-27T20:47:56.280Z","schemaVersion":2},"datasetVersion":"2026-08-28T00:17:15.603Z"}