@@ -3,16 +3,16 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit';
33import { WorkflowManagerState } from './types' ;
44
55const Types = {
6- addProcess : 'internal/ ADD_PROCESS' ,
7- removeProcess : 'internal/ REMOVE_PROCESS' ,
6+ addProcess : 'ADD_PROCESS' ,
7+ removeProcess : 'REMOVE_PROCESS' ,
88} ;
99
1010const initialState : WorkflowManagerState = {
1111 activeProcesses : [ ] ,
1212} ;
1313
14- export const workflowManagerSlice = createSlice ( {
15- name : '@@workflowManager ' ,
14+ export const workflowManagerInternalSlice = createSlice ( {
15+ name : '@@workflowManagerInternal ' ,
1616 initialState,
1717 reducers : {
1818 [ Types . addProcess ] : ( state , action : PayloadAction < string > ) => {
@@ -26,8 +26,9 @@ export const workflowManagerSlice = createSlice({
2626 } ,
2727} ) ;
2828
29- export const prefix = workflowManagerSlice . name ;
30- export const addProcess = workflowManagerSlice . actions [ Types . addProcess ] ;
31- export const removeProcess = workflowManagerSlice . actions [ Types . removeProcess ] ;
29+ export const addProcess =
30+ workflowManagerInternalSlice . actions [ Types . addProcess ] ;
31+ export const removeProcess =
32+ workflowManagerInternalSlice . actions [ Types . removeProcess ] ;
3233
33- export default workflowManagerSlice . reducer ;
34+ export default workflowManagerInternalSlice . reducer ;
0 commit comments