Skip to content

renderToStringWithData/getDataFromTree unbatched #12762

@dkempner

Description

@dkempner

Why?

These functions work well and minimize the number of renders that happen during Server Side Rendering, but they also potentially block progress and contribute to longer SSR times if there's a non-blocking query in a batch.

Image

What?

This issue is more of a discussion than a request. I'm wondering why we don't have the option for consumeAndAwaitPromises to work more like a promise.any instead of promise.all. We could debounce it a bit so not every single promise returned will kick off the next render.

Would this be something we could add as an option to renderToStringWithData?

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