Commit b5a1876
committed
fix(perps): move PerpsAlwaysOnProvider inside ErrorBoundary
PerpsAlwaysOnProvider was wrapping ErrorBoundary, so a synchronous render
error in its useSelector call would bypass the wallet error boundary and
crash the app. Swapping the nesting order ensures any render error in
PerpsAlwaysOnProvider is caught by the wallet boundary, consistent with
the stated goal that a perps failure cannot block the rest of the app.1 parent 2037d4a commit b5a1876
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
1444 | | - | |
1445 | | - | |
| 1444 | + | |
| 1445 | + | |
1446 | 1446 | | |
1447 | 1447 | | |
1448 | 1448 | | |
| |||
1507 | 1507 | | |
1508 | 1508 | | |
1509 | 1509 | | |
1510 | | - | |
1511 | | - | |
| 1510 | + | |
| 1511 | + | |
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
| |||
0 commit comments