Commit 80b43c4
Add comment explaining isAuthenticated guard and regression test
Add an inline comment in Link.ts explaining why the isAuthenticated check
is needed before hasCompletedGuidedSetupFlowSelector (the selector returns
true for empty onboarding objects, which is the pre-login default state).
Add a regression test in OnboardingSelectorsTest.ts that documents this
behavior and verifies the combined deeplink guard condition rejects
unauthenticated users even when the selector returns true.
Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>1 parent 297ff28 commit 80b43c4
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
367 | 370 | | |
368 | 371 | | |
369 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
10 | 25 | | |
11 | 26 | | |
12 | 27 | | |
| |||
0 commit comments