Skip to content

Commit 71762aa

Browse files
committed
refactor: Include more caveats
1 parent f59f568 commit 71762aa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/renderer.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ import { renderHook, act } from '@testing-library/react-hooks/server' // will us
4747
4848
## Caveats
4949
50+
## Auto detect
51+
52+
The auto detection function may not work if tests are bundled to run in the browser.
53+
5054
### SSR
5155
5256
While calling `renderHook` from `@testing-library/react-hooks/native` and
@@ -58,4 +62,5 @@ additional function:
5862
function hydrate(): void
5963
```
6064

61-
For more information on `hydrate` see the [API documentation](/reference/api#hydrate)
65+
Remember, state will not update with SSR unless `hydrate` is called. For more information on
66+
`hydrate` see the [API documentation](/reference/api#hydrate).

0 commit comments

Comments
 (0)