Skip to content

SimulatePreloadedQuery suspends on mount because it's lazy loaded #506

@iamkd

Description

@iamkd

It seems that while #345 has fixed the bundling issue, it caused a different type of an issue.

Preloading from RSC and passing it down into SSR context works as expected. However, because the component itself is lazily loaded, the whole tree suspends for a brief time while the JS file with the component is fetched.

This causes a flicker with Suspense even though the page already has everything on initial load, and we also have the client-side cache transferred as well. Can we remove the lazy import or expose it so we can statically import it and prevent it from bundling separately?

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