MCPcopy Create free account
hub / github.com/formkit/formkit / createHooks

Function createHooks

packages/core/src/node.ts:1775–1785  ·  view source on GitHub ↗

* Create all of the node's hook dispatchers.

()

Source from the content-addressed store, hash-verified

1773 * Create all of the node's hook dispatchers.
1774 */
1775function createHooks(): FormKitHooks {
1776 const hooks: Map<string, FormKitDispatcher<unknown>> = new Map()
1777 return new Proxy(hooks, {
1778 get(_, property: string) {
1779 if (!hooks.has(property)) {
1780 hooks.set(property, createDispatcher())
1781 }
1782 return hooks.get(property)
1783 },
1784 }) as unknown as FormKitHooks
1785}
1786
1787/**
1788 * This is a simple integer counter of every createName() where the name needs

Callers 1

createContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected