diff --git a/docs/api-reference.md b/docs/api-reference.md index b04f3739..42b7288b 100644 --- a/docs/api-reference.md +++ b/docs/api-reference.md @@ -63,13 +63,17 @@ The `renderHook` function returns an object that has the following properties: ```js { + all: Array current: any, error: Error } ``` -The `current` value or the `result` will reflect whatever is returned from the `callback` passed to -`renderHook`. Any thrown values will be reflected in the `error` value of the `result`. +The `current` value or the `result` will reflect the latest of whatever is returned from the +`callback` passed to `renderHook`. Any thrown values from the latest call will be reflected in the +`error` value of the `result`. The `all` value is an array containing all the returns (including the +most recent) from the callback. These could be `result` or an `error` depending on what the callback +returned at the time. ### `rerender`