Prior to this pull request, the pattern for rendering pages was as follows:
- When browser goes to a route, the router executes a handler function (with a name like
showClassesPage
) - The handler will have some standard effects on the Vuex store (e.g. show loading page, update a
pageName
field that matches the route's name, etc.). It will usually request some data from the server and then terminate by committing aSET_PAGE_STATE
mutation that copies that server data into Vuex inside of thepageState
field. - The Vue component that is mapped to
pageName
will render and pull the data it needs to present frompageState
.
After this Pull Request, this flow changes in the following manner: