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.
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
. TheTopNavigation
component is only rendered if the prop is defined by utilizing the short circuit evaluation pattern.