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 40d9a5a commit 4d22f6aCopy full SHA for 4d22f6a
src/components/connectAdvanced.tsx
@@ -38,14 +38,12 @@ function storeStateUpdatesReducer(
38
return [action.payload, updateCount + 1]
39
}
40
41
-type UseLayoutEffect = typeof useLayoutEffect
42
type EffectFunc = (...args: any[]) => void | ReturnType<React.EffectCallback>
43
-type EffectDeps = Parameters<UseLayoutEffect>[1]
44
45
function useIsomorphicLayoutEffectWithArgs(
46
effectFunc: EffectFunc,
47
effectArgs: any[],
48
- dependencies?: EffectDeps
+ dependencies?: React.DependencyList
49
) {
50
useIsomorphicLayoutEffect(() => effectFunc(...effectArgs), dependencies)
51
0 commit comments