{"record":{"id":"38357abfbde4dee6","repo":"ueberdosis/tiptap","slug":"next-js-detected-immediatelyrender-defaults-to","errorCode":null,"errorMessage":"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.","messagePattern":"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\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/react/src/useEditor.ts","lineNumber":109,"sourceCode":"    // 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.\n   */\n  private createEditor(): Editor {\n    const optionsToApply: Partial<EditorOptions> = {\n      ...this.options.current,\n      // Always call the most recent version of the callback function by default\n      onBeforeCreate: (...args) => this.options.current.onBeforeCreate?.(...args),\n      onBlur: (...args) => this.options.current.onBlur?.(...args),\n      onCreate: (...args) => this.options.current.onCreate?.(...args),","sourceCodeStart":91,"sourceCodeEnd":127,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/react/src/useEditor.ts#L91-L127","documentation":"Error \"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.\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/react/src/useEditor.ts:109 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"}