File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export class SpringValue<T = any> extends AnimationValue<T> {
9292 /** The state for `runAsync` calls */
9393 protected _state : RunAsyncState < T >
9494 /** The last time each prop changed */
95- protected _timestamps ? : Indexable < number >
95+ protected _timestamps : Indexable < number > = { }
9696 /** Some props have customizable default values */
9797 protected _defaultProps = { } as PendingProps < T >
9898 /** Cancel any update from before this timestamp */
@@ -389,8 +389,7 @@ export class SpringValue<T = any> extends AnimationValue<T> {
389389 // Cast from a partial type.
390390 const anim : Partial < Animation < T > > = this . animation
391391
392- /** Where per-prop timestamps are kept */
393- const timestamps = this . _timestamps || ( this . _timestamps = { } )
392+ const timestamps = this . _timestamps
394393
395394 /** Return true if our prop can be used. This only affects delayed props. */
396395 const diff = ( prop : string ) => {
You can’t perform that action at this time.
0 commit comments