RenderHookResult

external interface RenderHookResult<Result, Props>(source)

Properties

Link copied to clipboard
abstract var rerender: (props: Props?) -> Unit

Triggers a re-render. The props will be passed to your renderHook callback.

Link copied to clipboard

This is a stable reference to the latest value returned by your renderHook callback

Link copied to clipboard
abstract var unmount: () -> Unit

Unmounts the test component. This is useful for when you need to test any cleanup your useEffects have.