You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param id A unique key for the child component. If the `id` is `undefined`, the registration logic will not run (this can sometimes be the case during SSR).
32
32
* This can be either a value, or a function that generates a value based on already registered siblings' ids.
33
-
* @param itemMetadata Arbitrary metadata to pass to the parent component. This should be a stable reference (e.g. a memoized object), to avoid unnecessary re-registrations.
34
-
* @param missingKeyGenerator A function that generates a unique id for the item.
35
-
* It is called with the set of the ids of all the items that have already been registered.
33
+
* If a function, it's called with the set of the ids of all the items that have already been registered.
36
34
* Return `existingKeys.size` if you want to use the index of the new item as the id.
35
+
* @param itemMetadata Arbitrary metadata to pass to the parent component. This should be a stable reference (e.g. a memoized object), to avoid unnecessary re-registrations.
0 commit comments