A function that accepts entities and synchronizes the container
const syncUsers = resolveContainerDeltas({
container: userContainer,
onAddItem: (user) => User.instance(user.id).options(user).build(),
onUpdateItem: (user, existing) => existing.update(user),
onRemoveItem: (id) => id
});
syncUsers(newUserList);
Creates a function that synchronizes a container with a new list of entities. Handles additions, removals, and optional updates to keep the container in sync.