Commit 9b05be9
authored
fix: in-line docs, un-needed AbortController creation (#1291)
This PR:
- clarifies some doc around `useWhenProviderReady` (it really only works
with READY)
- moves AbortController instantiation so we don't create it every render
if we don't need to
Signed-off-by: Todd Baert <[email protected]>1 parent 591f864 commit 9b05be9
File tree
2 files changed
+5
-1
lines changed- packages/react/src/provider
2 files changed
+5
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
0 commit comments