MCPcopy
hub / github.com/pmndrs/react-spring / constructor

Method constructor

packages/core/src/Controller.ts:124–135  ·  view source on GitHub ↗
(
    props?: ControllerUpdate<State> | null,
    flush?: ControllerFlushFn<any>
  )

Source from the content-addressed store, hash-verified

122 }
123
124 constructor(
125 props?: ControllerUpdate<State> | null,
126 flush?: ControllerFlushFn<any>
127 ) {
128 this._onFrame = this._onFrame.bind(this)
129 if (flush) {
130 this._flush = flush
131 }
132 if (props) {
133 this.start({ default: true, ...props })
134 }
135 }
136
137 /**
138 * Equals `true` when no spring values are in the frameloop, and

Callers

nothing calls this directly

Calls 1

startMethod · 0.95

Tested by

no test coverage detected