Skip to content

UI flags method names suggestions #572

Open
@sjparkinson

Description

@sjparkinson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions