added redux variable for reload component

This commit is contained in:
Pramod Mahajan 2025-05-05 17:29:06 +05:30
parent 4a326fb1ea
commit 1f6a85d507

View File

@ -5,7 +5,8 @@ const localVariablesSlice = createSlice({
initialState: { initialState: {
selectedMaster:"Application Role", selectedMaster:"Application Role",
regularizationCount:0, regularizationCount:0,
projectId:1, projectId: 1,
reload:false
}, },
reducers: { reducers: {
@ -18,8 +19,12 @@ const localVariablesSlice = createSlice({
setProjectId: (state, action) => { setProjectId: (state, action) => {
state.projectId = action.payload; 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; export default localVariablesSlice.reducer;