API Reference / @gtkx/testing / RenderHookResult
Type Alias: RenderHookResult<Result, Props>
RenderHookResult<
Result,Props> =object
Defined in: types.d.ts:122
The result of renderHook: the latest hook return value plus functions to rerender with new props and to unmount.
Type Parameters
Result
Result
Props
Props
Properties
rerender
rerender: (
newProps?) =>Promise<void>
Defined in: types.d.ts:127
Parameters
newProps?
Props
Returns
Promise<void>
result
result:
object
Defined in: types.d.ts:124
Holds the most recent value returned by the hook under current.
current
current:
Result
unmount
unmount: () =>
Promise<void>
Defined in: types.d.ts:128
Returns
Promise<void>