Lets only trigger a reload at the end of the loop. Otherwise every time we trigger a reload, it will do a fetch for the list of design docs. So rather just put a flag in this if statement, then check the flag after the loop has completed and decide if we need to trigger the `reloadDesignDocs` routeEvent.