1
0
mirror of https://github.com/Unleash/unleash.git synced 2026-02-20 13:57:42 +01:00
unleash.unleash/frontend/src/component/feature/FeatureStrategy/FeatureStrategyCreate
Thomas Heartman 9a002407c6
chore: split useUnleashContext into more specialized, targeted hooks (#11230)
Introduces:
- `useAssignableUnleashContext`: gets context fields that can be applied
to a constraint (in a strategy or segment)
- `useScopedUnleashContext`: gets context fields that are scoped to the
current context (either only global or only project)
- `useFullUnleashContext`: gets the whole Unleash context, global and
all project fields.

Updates all other usages of `useUnleashContext` to use the more targeted
versions.

With the new project/root context split, this makes the use of the
specific set of context fields clearer and more intentional.

Also: deletes the front-end workaround that we did to merge context
fields when appropriate.
2026-01-22 10:33:08 +01:00
..
FeatureStrategyCreate.test.tsx chore: split useUnleashContext into more specialized, targeted hooks (#11230) 2026-01-22 10:33:08 +01:00
FeatureStrategyCreate.tsx
featureStrategyFormTestSetup.ts chore: split useUnleashContext into more specialized, targeted hooks (#11230) 2026-01-22 10:33:08 +01:00