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 0208040 commit 43e8ef5Copy full SHA for 43e8ef5
packages/core/src/useSprings.ts
@@ -71,10 +71,6 @@ export function useSprings(
71
): any {
72
const propsFn = is.fun(props) && props
73
74
- if (propsFn && arguments.length < 3) {
75
- deps = [] // Skip updates after first render.
76
- }
77
-
78
// The "ref" prop is taken from the props of the first spring only.
79
// The ref is assumed to *never* change after the first render.
80
let ref: RefObject<SpringHandle> | undefined
@@ -109,7 +105,7 @@ export function useSprings(
109
105
}
110
106
111
107
112
- }, deps)
108
+ }, (deps || []).concat(length))
113
114
const api = useMemo(
115
(): SpringHandle => ({
0 commit comments