We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f65fc8 + c905c05 commit 25db3dcCopy full SHA for 25db3dc
packages/overmind-website/examples/guide/routing/tab.ts
@@ -52,14 +52,14 @@ export const showHomePage = ({ state }) => {
52
state.currentPage = 'home'
53
}
54
55
-export const showUsersPage = async ({ value: params, state, effects }) => {
+export const showUsersPage = action( async ({ value: params, state, effects }) => {
56
if (!params.id) state.modalUser = null
57
58
state.currentPage = 'users'
59
state.isLoadingUsers = true
60
state.users = await effects.api.getUsers()
61
state.isLoadingUsers = false
62
-}
+})
63
64
export const showUserModal = parallel(
65
showUsersPage,
0 commit comments