Create a mixin for the index data getting logic, to allow us to avoid repeating the logic that selects the correct language variant of the index data.
set default state of flatChildren to null, so we don't need to create an additional variable to store isFetching. Instead, this can be computed by checking whether flatChildren is null and errorFetching is false.
Dependencies
NA
Testing
Steps:
Check that there are no regressions
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.
Bug/issue #, if applicable: rdar://136089361
Summary
This is the 2nd PR of the refactor effort.
This PR does 2 small things:
flatChildren
tonull
, so we don't need to create an additional variable to storeisFetching
. Instead, this can be computed by checking whetherflatChildren
isnull
anderrorFetching
isfalse
.Dependencies
NA
Testing
Steps:
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.
npm test
, and it succeeded