state.ts
391 Bytes
/**
* @author wonseog
* @date 2021-03-09
* @description store 관리
* 주로 instaId, followers, following 관리
**/
const initialState = {
user: ["", "", ""],
follower: [["", "", ""]],
};
let state = initialState;
export const setState = (newState): void => {
state = {
...state,
...newState,
};
};
export const getState = () => {
return state;
};