Note that the value of will be until the component has mounted, so we put the logic inside the .