21 lines
467 B
JavaScript
21 lines
467 B
JavaScript
import { createSlice } from '@reduxjs/toolkit';
|
|
|
|
const initialState = {
|
|
value: {},
|
|
};
|
|
|
|
export const counterSlice = createSlice({
|
|
name: 'computationsGWWP',
|
|
initialState,
|
|
reducers: {
|
|
updateComputationResultGWWP: (state, action) => {
|
|
state.value = action.payload;
|
|
},
|
|
},
|
|
});
|
|
|
|
// Action creators are generated for each case reducer function
|
|
export const { updateComputationResultGWWP } = counterSlice.actions;
|
|
|
|
export default counterSlice.reducer;
|