1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-29 06:49:55 +00:00
bramw_baserow/web-frontend/modules/database/middleware/tableLoading.js
2020-09-27 14:41:03 +00:00

8 lines
281 B
JavaScript

/**
* Middleware that changes the table loading state to true before the the route
* changes. That way we can show a loading animation to the user when switching
* between views.
*/
export default async function ({ store }) {
await store.dispatch('table/setLoading', true)
}