ueberdosis/tiptap · error

SSR detected. `immediatelyRender` has been set to false to a

Error message

SSR detected. `immediatelyRender` has been set to false to avoid hydration mismatches

What it means

Error "SSR detected. `immediatelyRender` has been set to false to avoid hydration mismatches" thrown in ueberdosis/tiptap.

Source

Thrown at packages/react/src/useEditor.ts:101

    this.onRender = this.onRender.bind(this)
    this.createEditor = this.createEditor.bind(this)
  }

  private setEditor(editor: Editor | null) {
    this.editor = editor
    this.instanceId = Math.random().toString(36).slice(2, 9)

    // Notify all subscribers that the editor instance has been created
    this.subscriptions.forEach(cb => cb())
  }

  private getInitialEditor() {
    const explicit = this.options.current.immediatelyRender
    let immediatelyRender = explicit ?? true

    if (isSSR) {
      if (immediatelyRender && isDev) {
        console.warn(
          'SSR detected. `immediatelyRender` has been set to false to avoid hydration mismatches',
        )
      }
      immediatelyRender = false
    } else if (isNext && explicit === undefined) {
      immediatelyRender = false
      if (isDev) {
        console.warn(
          '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.',
        )
      }
    }

    return immediatelyRender ? this.createEditor() : null
  }

  /**
   * Create a new editor instance. And attach event listeners.

View on GitHub (pinned to 496d53afd7)

When it happens

Trigger: Thrown at packages/react/src/useEditor.ts:101 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ueberdosis/tiptap@496d53afd7 (2026-08-26). Data as JSON: /api/errors/aec3f188878ae046. Report an issue: GitHub.