diff --git a/src/FlagProvider.tsx b/src/FlagProvider.tsx index bf8859d..dd35b1e 100644 --- a/src/FlagProvider.tsx +++ b/src/FlagProvider.tsx @@ -36,7 +36,9 @@ const FlagProvider: React.FC> = ({ }); client.current.on('error', (e: any) => { - setFlagsError(e); + if (flagsError === null) { + setFlagsError(e); + } }); React.useEffect(() => {