File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,17 @@ The `renderHook` function returns an object that has the following properties:
63
63
64
64
```js
65
65
{
66
+ all: Array < any>
66
67
current: any,
67
68
error: Error
68
69
}
69
70
` ` `
70
71
71
- The ` current ` value or the ` result ` will reflect whatever is returned from the ` callback ` passed to
72
- ` renderHook ` . Any thrown values will be reflected in the ` error ` value of the ` result ` .
72
+ The ` current ` value or the ` result ` will reflect the latest of whatever is returned from the
73
+ ` callback ` passed to ` renderHook ` . Any thrown values from the latest call will be reflected in the
74
+ ` error ` value of the ` result ` . The ` all ` value is an array containing all the returns (including the
75
+ most recent) from the callback. These could be ` result ` or an ` error ` depending on what the callback
76
+ returned at the time.
73
77
74
78
### ` rerender `
75
79
You can’t perform that action at this time.
0 commit comments