You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Patches a store to enable action grouping in devtools by wrapping the store with a Proxy that is passed as the context of all actions, allowing us to set `runningAction` on each access and effectively associating any state mutation to the action.
450
+
* Patches a store to enable action grouping in devtools by wrapping the store with a Proxy that is passed as the
451
+
* context of all actions, allowing us to set `runningAction` on each access and effectively associating any state
452
+
* mutation to the action.
438
453
*
439
454
* @param store - store to patch
440
455
* @param actionNames - list of actionst to patch
@@ -484,6 +499,11 @@ export function devtoolsPlugin<
484
499
return
485
500
}
486
501
502
+
// detect option api vs setup api
503
+
if(options.state){
504
+
store._isOptionsAPI=true
505
+
}
506
+
487
507
// only wrap actions in option-defined stores as this technique relies on
488
508
// wrapping the context of the action with a proxy
0 commit comments