Skip to content

Commit 0e67d2e

Browse files
committed
Added getAllComponents method in masterState to see array of actions
1 parent 9023bf5 commit 0e67d2e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/backend/models/masterState.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,10 @@ export default {
4444
*/
4545
getComponentByIndexHooks: (inputIndex: Array<number> = []): any[] | undefined =>
4646
inputIndex.map((index) => componentActionsRecord[index]),
47+
// ----------------------------------DEBUGGING--------------------------------
48+
/**
49+
* This method is used for debugging purpose to access the array of setState/dispatch methods
50+
* @returns - an array of objects containing the bound methods for updating state
51+
*/
52+
getAllComponents: (): any[] => componentActionsRecord,
4753
};

0 commit comments

Comments
 (0)