added redux variable for reload component
This commit is contained in:
parent
4a326fb1ea
commit
1f6a85d507
@ -5,7 +5,8 @@ const localVariablesSlice = createSlice({
|
||||
initialState: {
|
||||
selectedMaster:"Application Role",
|
||||
regularizationCount:0,
|
||||
projectId:1,
|
||||
projectId: 1,
|
||||
reload:false
|
||||
|
||||
},
|
||||
reducers: {
|
||||
@ -18,8 +19,12 @@ const localVariablesSlice = createSlice({
|
||||
setProjectId: (state, action) => {
|
||||
state.projectId = action.payload;
|
||||
},
|
||||
refreshData: ( state, action ) =>
|
||||
{
|
||||
state.reload = action.payload
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
export const { changeMaster ,updateRegularizationCount,setProjectId} = localVariablesSlice.actions;
|
||||
export const { changeMaster ,updateRegularizationCount,setProjectId,refreshData} = localVariablesSlice.actions;
|
||||
export default localVariablesSlice.reducer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user