Skip to content

[Bug]: useLayoutEffect ssr react warning #5872

Closed
@frattaro

Description

Affected Packages

react

Version(s)

latest

Bug Description

The latest version of tiptap uses useLayoutEffect, and in an ssr site react throws hundreds of warnings about using useLayoutEffect on ssr. Can you use useIsomorphicLayoutEffect?

image

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

avoid the warnings if possible. they're dumb warnings and people have complained to the react team about them but they haven't done anything

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.

Metadata

Assignees

No one assigned

    Labels

    Category: Open SourceThe issue or pull reuqest is related to the open source packages of Tiptap.Type: BugThe issue or pullrequest is related to a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions