Pass the selection name and the invert argument to each component instead of retrieving them every time.