geothermie-atlas/redux/computationsEWSSlice.js

21 lines
464 B
JavaScript

import { createSlice } from '@reduxjs/toolkit';
const initialState = {
value: {},
};
export const counterSlice = createSlice({
name: 'computationsEWS',
initialState,
reducers: {
updateComputationResultEWS: (state, action) => {
state.value = action.payload;
},
},
});
// Action creators are generated for each case reducer function
export const { updateComputationResultEWS } = counterSlice.actions;
export default counterSlice.reducer;