Skip to content

Focus lock suspense error in SSR #377

@ExLineP

Description

@ExLineP

Hi, in my project I use react-focus-on@3.9.2 and I encounter Suspense Error:

This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.

Modal component has Suspense parent, but react-focus-lock updates before hydrating finished. I guess updates of FocusLock can be wrapped in startTransition, but I'm not sure if that's the right path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions