Closed Mark90 closed 1 year ago
While the order of importedModulesis guaranteed, the order of importedModules.map(...) isn't.
importedModules
importedModules.map(...)
As a result the app will sometimes define (and thus match) <Route> components in a wrong order.
<Route>
The added .sort() call ensures a consistent order.
.sort()
While the order of
importedModules
is guaranteed, the order ofimportedModules.map(...)
isn't.As a result the app will sometimes define (and thus match)
<Route>
components in a wrong order.The added
.sort()
call ensures a consistent order.