1
0
Fork 0
mirror of synced 2024-07-29 10:05:55 +12:00

Manually pull in new state context on each button action enrichment to keep aware of state changes during button action execution

This commit is contained in:
Andrew Kingston 2022-04-01 18:36:41 +01:00
parent 9ad826ffde
commit 4c22ff4dce

View file

@ -346,6 +346,7 @@ export const enrichButtonActions = (actions, context) => {
// Built total context for this action // Built total context for this action
const totalContext = { const totalContext = {
...context, ...context,
state: get(stateStore),
actions: buttonContext, actions: buttonContext,
eventContext, eventContext,
} }