Skip to content

Commit 4e1d0bd

Browse files
committed
fix: remove code that caused #1810
Should have been removed by 9416f26 but bad merging brought both in.
1 parent 54d2d39 commit 4e1d0bd

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

packages/core/src/hooks/useTrail.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -73,27 +73,6 @@ export function useTrail(
7373
})
7474
}, deps)
7575

76-
/**
77-
* Overwrite the start function so it runs our
78-
* specific trail-making way
79-
*/
80-
ref['start'] = (propsArg?: object | ControllerUpdateFn) => {
81-
const results: AsyncResult[] = []
82-
83-
each(ref.current, (ctrl, i) => {
84-
const props = is.fun(propsArg) ? propsArg(i, ctrl) : propsArg
85-
86-
const parent = ref.current[i + (reverse ? 1 : -1)]
87-
if (parent) {
88-
results.push(ctrl.start({ ...props, to: parent.springs }))
89-
} else {
90-
results.push(ctrl.start({ ...props }))
91-
}
92-
})
93-
94-
return results
95-
}
96-
9776
if (propsFn || arguments.length == 3) {
9877
ref['_getProps'] = (propsArg, ctrl, i) => {
9978
const props = is.fun(propsArg) ? propsArg(i, ctrl) : propsArg

0 commit comments

Comments
 (0)