-
Notifications
You must be signed in to change notification settings - Fork 232
Commit e2461ca
fix(server): remove act around server renderer to fix support for older versions of react
* refactor(server/pure): remove unnecessary type annotation
* feat: add ssr.test.ts
This adds a new test to verify that renderHook can be called in an
SSR-like environment based on the changes implemented in #607.
* chore: update contributors table
* refactor: remove act call in render in sever/pure
@mpeyper explained how this `act` call in server rendering is not really
necessary so we can remove it.1 parent efd262c commit e2461ca
File tree
4 files changed
+27
-10
lines changed- src
- __tests__
- server
4 files changed
+27
-10
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
145 | 145 |
| |
146 | 146 |
| |
147 | 147 |
| |
148 | - | ||
148 | + | ||
149 | + | ||
149 | 150 |
| |
150 | 151 |
| |
151 | 152 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
198 | 198 |
| |
199 | 199 |
| |
200 | 200 |
| |
201 | - | ||
201 | + | ||
202 | 202 |
| |
203 | 203 |
| |
204 | 204 |
| |
|
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + |
Lines changed: 6 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 | - | ||
16 | + | ||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 | - | ||
23 | - | ||
24 | - | ||
25 | - | ||
26 | - | ||
27 | - | ||
28 | - | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
29 | 27 |
| |
30 | 28 |
| |
31 | 29 |
| |
|
0 commit comments