Failing to load components before rendering