MCPcopy
hub / github.com/final-form/final-form / last

Function last

src/FinalForm.field-initialValue-988.test.ts:7–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 const form = createForm({ onSubmit: () => {} })
6 const spy = jest.fn()
7 const last = () => spy.mock.calls.at(-1)[0]
8 form.subscribe(spy, { initialValues: true, values: true, dirty: true })
9 expect(spy).toHaveBeenCalledTimes(1)
10 expect(spy.mock.calls[0][0].initialValues).toBeUndefined()

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…