Formatting is off here, try should be around each onAttached() so that 1 bad component does not break all of the components.