Commit ae27839
refactor(featureFlags): centralize ?ff= reading with the other query-state readers (#15044)
## Summary
Reuse Vue Router's existing query parser for `?ff=` instead of parsing
`window.location.search` independently with `URLSearchParams`.
## Changes
- Replace the local `URLSearchParams` reader in
`sessionFeatureFlagOverride.ts` with `parseQuery`.
- Preserve pre-router synchronous access, repeated `?ff=` parameters,
nameless clearing, typed values, persistence, and employee gating.
- No new modules, router hooks, state, dependencies, or tests.
Fixes FE-1551
## Verification
- `pnpm test:unit src/utils/sessionFeatureFlagOverride.test.ts`
- `pnpm typecheck`
- `pnpm lint`
- `pnpm knip`
- `pnpm exec oxfmt --check src/utils/sessionFeatureFlagOverride.ts`
Co-authored-by: ShihChi Huang <shh@theonlyperson.com>1 parent 022c843 commit ae27839
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
| |||
0 commit comments