Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Added registerMyFeatureFlags support

Latest
Compare
Choose a tag to compare
@phenixcoder phenixcoder released this 30 Sep 01:37
· 2 commits to master since this release

Now you can expose a register handle to avoid race conditions.

Plugin will automatically call this function after loading into the page.

window.registerMyFeatureFlags = (register) => {
  register(toggles, (key, value) => {
    console.info(`Toggling ${key} => ${value}`);
    toggleFeatureFlag(key, value);
  });
};