From: Eduardo San Martin Morote Date: Wed, 4 Aug 2021 13:50:53 +0000 (+0200) Subject: fix(devtools): grouping of actions X-Git-Tag: v2.0.0-rc.2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d760f1c78936666174c1a352314081bccf11b01;p=thirdparty%2Fvuejs%2Fpinia.git fix(devtools): grouping of actions --- diff --git a/src/devtools/plugin.ts b/src/devtools/plugin.ts index e3f8d5d8..5592a2da 100644 --- a/src/devtools/plugin.ts +++ b/src/devtools/plugin.ts @@ -476,7 +476,7 @@ export function devtoolsPlugin< // only wrap actions in option-defined stores as this technique relies on // wrapping the context of the action with a proxy - if ('id' in options) { + if (typeof options.state === 'function') { patchActionForGrouping( // @ts-expect-error: can cast the store... store,