Skip to content

Cannot use useTrackRenders when component is used in the wrapper option #7

Closed as not planned
@jerelmiller

Description

@jerelmiller

When using renderStream.render, I am unable to to use components that use the useTrackRenders hook in the wrapper option. As an example, see this test from an Apollo Client bug that I'm working on. I'd like to move the <Suspense /> and <ErrorBoundary /> components to the wrapper option. When doing so however, I see the error:

useTrackRenders: A Render Stream must be created and rendered to track component renders

Ideally useTrackRenders can be used for components in the components passed to render and wrapper. This would also make it easier for more of these complex cases to use rerender to avoid the need to pass that whole component tree again.

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