Closed adrianhorning08 closed 6 years ago
Needed to do some if else logic. But the test solution and other peoples code doesn't need that. So whats the deal?
Turns out I did need to do that. Aaron said this would be a great time to use a loading page. ...maybe when I have the MVPs done I'll build that out
In the team show component, I map the state to props with team. But then this.props.team is undefined in the show page. The state is initially empty. So it waits for the index to mount, then populates the state with teams, but by then its too late for the show page.