From 5111b5431f9462b820376f1df175ca4a39eefc4f Mon Sep 17 00:00:00 2001 From: elcloudbees <55796599+elcloudbees@users.noreply.github.com> Date: Tue, 12 Nov 2024 06:49:09 -0600 Subject: [PATCH] Update flag.js uncommented configuration fetched handler to automatically reload page when changes are applied --- src/utils/flag.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/flag.js b/src/utils/flag.js index d498037..3e57001 100644 --- a/src/utils/flag.js +++ b/src/utils/flag.js @@ -2,10 +2,10 @@ import Rox from "rox-browser"; import { betaAccess, isLoggedIn, getCompany } from "./users"; export const configurationFetchedHandler = (fetcherResults) => { - // console.log(fetcherResults) - // if (fetcherResults.hasChanges && fetcherResults.fetcherStatus === 'APPLIED_FROM_NETWORK') { - // window.location.reload(false) - // } + console.log(fetcherResults) + if (fetcherResults.hasChanges && fetcherResults.fetcherStatus === 'APPLIED_FROM_NETWORK') { + window.location.reload(false) + } }; export const impressionHandler = (reporting) => {