Consideration for @financial-times/dotcom-ui-flags in the next major version.
We could change the methods to be more domain specific, e.g.
import * as pageKitFlags from '@financial-times/dotcom-ui-flags';
const flagsClient = pageKitFlags.init();
flagsClient.getState('oTracking');
// OR...
flagsClient.isActive('oTracking');
At the moment with the method only being get, that could also mean get the full flag model, rather than only the state.
Consideration for
@financial-times/dotcom-ui-flagsin the next major version.We could change the methods to be more domain specific, e.g.
At the moment with the method only being
get, that could also mean get the full flag model, rather than only the state.