Plop user data into the store when loading up the base component

This commit is contained in:
Dane Everitt
2019-06-22 17:07:28 -07:00
parent 328347fab7
commit e20a768182
5 changed files with 87 additions and 28 deletions

View File

@@ -0,0 +1,11 @@
import { UserState } from '@/state/types';
import { action } from 'easy-peasy';
const user: UserState = {
data: undefined,
setUserData: action((state, payload) => {
state.data = payload;
}),
};
export default user;