@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
9 lines • 400 B
JavaScript
import { useState } from "react";
import { useFeature } from "../featureFlags";
/** Only returns the value that the flag has at first render */
export const useLdmkFeatureFlagInitiallyEnabled = () => {
const flagEnabled = !!useFeature("ldmkTransport")?.enabled;
const [isEnabled] = useState(flagEnabled);
return isEnabled;
};
//# sourceMappingURL=useLdmkFeatureFlagInitiallyEnabled.js.map