diff --git a/packages/core/.storybook/WithFeatureFlags/index.js b/packages/core/.storybook/WithFeatureFlags/index.js index 1f5763bfa9..77067b5ecd 100644 --- a/packages/core/.storybook/WithFeatureFlags/index.js +++ b/packages/core/.storybook/WithFeatureFlags/index.js @@ -15,7 +15,6 @@ import { Annotation } from '../Annotation'; export const WithFeatureFlags = ({ flags, children }) => { const [updatedFlags, setUpdatedFlags] = useState(); - const [tempKey, setTempKey] = useState(0); const allFlagsEnabled = Object.fromEntries( Array.from(FeatureFlagScope.flags.keys()).map((k) => [k, true]) ); @@ -28,12 +27,11 @@ export const WithFeatureFlags = ({ flags, children }) => { FeatureFlagScope.flags.set(key, value); } setUpdatedFlags(FeatureFlagScope.flags); - setTempKey((prev) => prev + 1); } }, [flags]); return ( - +