jmkaneshiro / stayontrack

StayOnTrack is a clone of Pivotal Tracker -- an agile project management tool.
https://stay-on-track-app.herokuapp.com/
5 stars 0 forks source link

Fixes project navigation reload issue #44

Closed jmkaneshiro closed 4 years ago

jmkaneshiro commented 4 years ago

Summary

Project page was still not able to reload because the navigation bar was not receiving the project itself as a prop. It now receives it as a prop after componentDidMount runs on the project itself.

Technical Notes

On the initial render of a project page, the project has an undefined project as a prop. It defines the project via componentDidMount. The TopNavigation component is only rendered if the prop is defined by utilizing the short circuit evaluation pattern.