Skip to content

withServerValueInitial + useAtomSuspense + react prerender = problems #296

@ethanniser

Description

@ethanniser

react's prerender function "awaits" for suspense to resolve

this creates a problem when using withServerValueInitial which never resolves, so useAtomSuspense blocks forever and the prerender never finishes

this can be solved by aborting the prerender (how PPR works) but I thought this might be partially a bug in atom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions