develop-me / bagajob

Job Hunting Management App built by Develop Me students for Develop Me students.
https://bagajob.developme.space
GNU Affero General Public License v3.0
1 stars 2 forks source link

Single job loading #59

Closed kierancott closed 4 years ago

kierancott commented 4 years ago

This branch is a secondary branch from display-and-edit-jobs:

master -> development -> display-and-edit-jobs -> single-job-loading

The purpose of this branch is to address an issue where the single job page would render the components before data has been fetched from the API, resulting in the browser displaying incorrect job details.

This has now been fixed by adding a loaded boolean to the reducer preventing component mount, which is not updated until data has been returned from the API.

Since all changes on display-and-edit-jobs will be reviewed before merge into development, this PR does not require approval.