···4848 () => toStatsigUser(currentAccount?.did),
4949 [currentAccount?.did],
5050 )
5151+5252+ React.useEffect(() => {
5353+ function refresh() {
5454+ // Intentionally refetching the config using the JS SDK rather than React SDK
5555+ // so that the new config is stored in cache but isn't used during this session.
5656+ // It will kick in for the next reload.
5757+ Statsig.updateUser(currentStatsigUser)
5858+ }
5959+ const id = setInterval(refresh, 3 * 60e3 /* 3 min */)
6060+ return () => clearInterval(id)
6161+ }, [currentStatsigUser])
6262+5163 return (
5264 <StatsigProvider
5365 sdkKey="client-SXJakO39w9vIhl3D44u8UupyzFl4oZ2qPIkjwcvuPsV"
+12
src/lib/statsig/statsig.web.tsx
···4848 () => toStatsigUser(currentAccount?.did),
4949 [currentAccount?.did],
5050 )
5151+5252+ React.useEffect(() => {
5353+ function refresh() {
5454+ // Intentionally refetching the config using the JS SDK rather than React SDK
5555+ // so that the new config is stored in cache but isn't used during this session.
5656+ // It will kick in for the next reload.
5757+ Statsig.updateUser(currentStatsigUser)
5858+ }
5959+ const id = setInterval(refresh, 3 * 60e3 /* 3 min */)
6060+ return () => clearInterval(id)
6161+ }, [currentStatsigUser])
6262+5163 return (
5264 <StatsigProvider
5365 sdkKey="client-SXJakO39w9vIhl3D44u8UupyzFl4oZ2qPIkjwcvuPsV"