Load the state of a component in the correct component.