MCPcopy Index your code
hub / github.com/TanStack/form / constructor

Method constructor

packages/angular-form/src/tanstack-field.ts:224–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

222 injector = inject(Injector)
223
224 constructor() {
225 effect((onCleanup) => {
226 const unmount = this._api().mount()
227
228 onCleanup(() => {
229 unmount()
230 })
231 })
232
233 effect(() => {
234 this._api().update(this.options())
235 })
236 }
237
238 cd = inject(ChangeDetectorRef)
239

Callers

nothing calls this directly

Calls 2

updateMethod · 0.80
mountMethod · 0.45

Tested by

no test coverage detected