Skip to content

Commit 03126fd

Browse files
feat(overmind-vue): add single hook creator
1 parent 18105cb commit 03126fd

File tree

1 file changed

+9
-0
lines changed
  • packages/node_modules/overmind-vue/src

1 file changed

+9
-0
lines changed

packages/node_modules/overmind-vue/src/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,4 +296,13 @@ export function createReactionHook<Config extends IConfiguration>() {
296296

297297
return overmindInstance.reaction
298298
}
299+
}
300+
301+
export function createHooks<Config extends IConfiguration>() {
302+
return {
303+
state: createStateHook<Config>(),
304+
actions: createActionsHook<Config>(),
305+
effects: createEffectsHook<Config>(),
306+
reaction: createReactionHook<Config>()
307+
}
299308
}

0 commit comments

Comments
 (0)