adrianhorning08 / vinyasa

Asana clone. Rails backend, React frontend.
8 stars 3 forks source link

Team show #6

Closed adrianhorning08 closed 6 years ago

adrianhorning08 commented 6 years ago

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.

adrianhorning08 commented 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?

adrianhorning08 commented 6 years ago

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