commit
4047a7ec23
378 changed files with 29334 additions and 0 deletions
17
redux/actions/queries.js
Normal file
17
redux/actions/queries.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { createSlice } from '@reduxjs/toolkit';
|
||||
|
||||
const queries = createSlice({
|
||||
name: 'queries',
|
||||
initialState: {},
|
||||
reducers: {
|
||||
updateQuery(state, action) {
|
||||
const { url, ...data } = action.payload;
|
||||
state[url] = data;
|
||||
return state;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const { updateQuery } = queries.actions;
|
||||
|
||||
export default queries.reducer;
|
||||
Loading…
Add table
Add a link
Reference in a new issue