Skip to content

[renderHook] Passing rerender props to the wrapper #1514

Closed
@udeyrishi

Description

@udeyrishi

Describe the Feature

I noticed this change in the legacy react-hooks-testing-library version of renderHook, whereby the props sent to the rerender function were also sent to any provided custom wrapper. However, I'm noticing that the @testing-library/react-native version of the renderHook util does not have this feature. Not sure if this is a bug or a feature request, so decided to just log this to get the conversation going.

Possible Implementations

Similar to testing-library/react-hooks-testing-library#381

Related Issues

testing-library/react-hooks-testing-library#322

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