We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a503045 commit 4a336f2Copy full SHA for 4a336f2
src/FlagProvider.tsx
@@ -25,9 +25,7 @@ const offlineConfig: IConfig = {
25
const _startTransition = 'startTransition';
26
// fallback for React <18 which doesn't support startTransition
27
// Fallback for React <18 and exclude startTransition if in React Native
28
-const defaultStartTransition: (fn: () => void) => void = React[_startTransition]
29
- ? React[_startTransition]
30
- : (fn => fn());
+const defaultStartTransition = React[_startTransition] || (fn => fn());
31
32
const FlagProvider: FC<PropsWithChildren<IFlagProvider>> = ({
33
config: customConfig,
0 commit comments