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

Method update

packages/lit-form/src/tanstack-form-controller.ts:460–476  ·  view source on GitHub ↗
(
    _: ElementPart,
    [form, fieldConfig, _render]: Parameters<this['render']>,
  )

Source from the content-addressed store, hash-verified

458 }
459
460 update(
461 _: ElementPart,
462 [form, fieldConfig, _render]: Parameters<this['render']>,
463 ) {
464 if (!this.#registered) {
465 if (!this.#field) {
466 const options = { ...fieldConfig, form }
467
468 this.#field = new FieldApi(options)
469 this.#unmount = this.#field.mount()
470 }
471
472 this.#registered = true
473 }
474
475 return this.render(form, fieldConfig, _render)
476 }
477
478 protected disconnected() {
479 super.disconnected()

Callers 13

constructorMethod · 0.80
createFormFunction · 0.80
createFormFunction · 0.80
createFieldFunction · 0.80
constructorMethod · 0.80
FieldApiClass · 0.80
FormApi.spec.tsFile · 0.80
FieldApi.spec.tsFile · 0.80
useFieldFunction · 0.80
useFormFunction · 0.80
useFieldFunction · 0.80
useFormFunction · 0.80

Calls 2

renderMethod · 0.95
mountMethod · 0.45

Tested by

no test coverage detected