{"record":{"id":"aec3f188878ae046","repo":"ueberdosis/tiptap","slug":"ssr-detected-immediatelyrender-has-been-set-to","errorCode":null,"errorMessage":"SSR detected. `immediatelyRender` has been set to false to avoid hydration mismatches","messagePattern":"SSR detected\\. `immediatelyRender` has been set to false to avoid hydration mismatches","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/react/src/useEditor.ts","lineNumber":101,"sourceCode":"    this.onRender = this.onRender.bind(this)\n    this.createEditor = this.createEditor.bind(this)\n  }\n\n  private setEditor(editor: Editor | null) {\n    this.editor = editor\n    this.instanceId = Math.random().toString(36).slice(2, 9)\n\n    // Notify all subscribers that the editor instance has been created\n    this.subscriptions.forEach(cb => cb())\n  }\n\n  private getInitialEditor() {\n    const explicit = this.options.current.immediatelyRender\n    let immediatelyRender = explicit ?? true\n\n    if (isSSR) {\n      if (immediatelyRender && isDev) {\n        console.warn(\n          'SSR detected. `immediatelyRender` has been set to false to avoid hydration mismatches',\n        )\n      }\n      immediatelyRender = false\n    } else if (isNext && explicit === undefined) {\n      immediatelyRender = false\n      if (isDev) {\n        console.warn(\n          'Next.js detected. `immediatelyRender` defaults to false to avoid hydration mismatches. Pass `immediatelyRender: true` explicitly if you are rendering the editor only on the client.',\n        )\n      }\n    }\n\n    return immediatelyRender ? this.createEditor() : null\n  }\n\n  /**\n   * Create a new editor instance. And attach event listeners.","sourceCodeStart":83,"sourceCodeEnd":119,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/react/src/useEditor.ts#L83-L119","documentation":"Error \"SSR detected. `immediatelyRender` has been set to false to avoid hydration mismatches\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/react/src/useEditor.ts:101 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":"496d53afd7e4e3c7424b4749adeff4f45e27ddb0","analyzedAt":"2026-08-26T22:41:43.400Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}