commit
Removes a list of state updates that have been applied from the pending state updates list and updates the map of current components with the given components.
Parameters
stateHandler
state handler that was used to apply state updates in a layout pass