Commit 092facb
committed
fix: remove prepareConnection dependency in useEffect
This was causing prepareConnection to get run constantly since its
reference depends on restOptions which changes every call.
The way I see it, if a user is changing their options and wants
prepareconnection to be run for something beyond the initial set
(probably unusual), they can call it themselves on the returned
session object.1 parent f3ab908 commit 092facb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
| 494 | + | |
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| |||
0 commit comments