Skip to content

Issue with Suspense + Lazy + @reach/router #2176

@ryansolid

Description

@ryansolid

Reach Router(https://github.com/reach/router) has an issue where it doesn't seem to trigger re-render once the Suspended Component is ready. In my projects if I navigate away and then come back again or do something to cause the parent to re-render suddenly the content is there. But otherwise it never shows on its own.

There appears to be no errors in the console. The content just does not appear as expected if Suspense is triggered on render.

I forked the sandbox for a React Router issue(which seems now to be fixed in 10.1.0). This example uses @react/router instead and appears to still be broken:
https://codesandbox.io/s/preact-suspense-lazy-issue-tdfjc

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions