MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / nextFieldArrayKey

Function nextFieldArrayKey

packages/core/src/forms/internal/arrayState.ts:57–61  ·  view source on GitHub ↗
(field: string, counterRef: CounterRef)

Source from the content-addressed store, hash-verified

55}
56
57function nextFieldArrayKey(field: string, counterRef: CounterRef): string {
58 const next = counterRef.current;
59 counterRef.current += 1;
60 return `${field}_${next}`;
61}
62
63function ensureFieldArrayKeys<T extends Record<string, unknown>>(
64 field: keyof T,

Callers 2

ensureFieldArrayKeysFunction · 0.85
appendFieldArrayKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected