@zealicsolutions/web-ui 1.0.140-beta.187 → 1.0.140-beta.188

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,4 +5,11 @@ import { ReplicatorFormContextProviderProps } from './types';
5
5
  * This provider should be set up by the parent container that detects replicator children
6
6
  * and calls useFieldArray for each one.
7
7
  */
8
+ /**
9
+ * Provides useFieldArray methods and metadata to replicator container and buttons.
10
+ *
11
+ * IMPORTANT: The context value must update when `fieldArrayMethods.fields` changes.
12
+ * Since `fieldArrayMethods` is a stable object reference from react-hook-form,
13
+ * we must include `fields` or `fields.length` in the useMemo dependencies.
14
+ */
8
15
  export declare const ReplicatorFormContextProvider: FC<PropsWithChildren<ReplicatorFormContextProviderProps>>;