A hook to manage a dynamic list of Module instances. It ensures that the Module instance for a given ID remains stable across renders, which is crucial for preserving the identity of the module (and its state/subscriptions).
The source data array.
A function to extract a unique key (ID) from an item.
A function to create a new Module instance for a given ID and item.
An array of Module instances corresponding to the items.
A hook to manage a dynamic list of Module instances. It ensures that the Module instance for a given ID remains stable across renders, which is crucial for preserving the identity of the module (and its state/subscriptions).