@manta-eu/react/providers/FutureFlagsProvider
Reference for @manta-eu/react/providers/FutureFlagsProvider as it is on main.
Type Aliases
FutureFlag
FutureFlag = keyof
FutureFlags
FutureFlags
FutureFlags =
object
Opt-in changes, off by default. Each v1_ flag becomes the default in 1.0.
Properties
v1_expressiveMotion?
optionalv1_expressiveMotion?:boolean
Spring and fade motion on controls and page changes.
v1_fittedForecastAxes?
optionalv1_fittedForecastAxes?:boolean
ForecastChart sizes its y axis to its labels; the Today label sits above the plot.
v1_groupedSidebar?
optionalv1_groupedSidebar?:boolean
The sidebar lists the datastore’s desks, each opening to its pages and attached boards.
v1_loadingButtonKeepsFocus?
optionalv1_loadingButtonKeepsFocus?:boolean
A loading Button stays focusable (aria-disabled) instead of disabled.
v1_screenLayouts?
optionalv1_screenLayouts?:boolean
PageHeader’s back link, kicker and views; hides the onboarding layer.
v1_tableKeyboardNavigation?
optionalv1_tableKeyboardNavigation?:boolean
Arrow, Home and End move focus in tables; Escape clears the selection.
FutureFlagsProviderProps
FutureFlagsProviderProps =
PropsWithChildren<{future?:FutureFlags; }>
Variables
allFutureFlags
constallFutureFlags:Required<FutureFlags>
Functions
FutureFlagsProvider()
FutureFlagsProvider(
props):Element
Merges with any enclosing provider’s flags; a flag this one leaves undefined keeps the outer value.
Parameters
props
Returns
Element
useFutureFlag()
useFutureFlag(
flag):boolean
Whether the app turned flag on; false outside any FutureFlagsProvider.
Parameters
flag
keyof FutureFlags
Returns
boolean