Skip to content

Editor reloads with state change in Next JS #422

Closed
@dukesx

Description

@dukesx

I am using NextJS@latest i.e 12.2 with React 18 and above. I am loading it with next/dynamic but it seems that the moment i change the state (edit inside editor), the editor reloads itself (re-renders). This means that if i enter a letter, the cursor looses focus and i can only type ONE letter at a time.

Not sure what is going on but from what i know, this is a persistent issue with editors that are not compatible with SSR apis. If i use TinyMCE or any other, they seem to work flawlessly. Only way to make it work is through useRef since it does not cause re-render.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions