mirror of
https://github.com/r-ca/kidshift-web.git
synced 2024-10-26 00:34:01 +00:00
getter
This commit is contained in:
parent
00a87e78bb
commit
d44938546f
4
src/store/cache/getters.ts
vendored
4
src/store/cache/getters.ts
vendored
|
@ -3,8 +3,8 @@ import { RootStateInterface } from '../index';
|
|||
import { CacheStateInterface } from './state';
|
||||
|
||||
const getters: GetterTree<CacheStateInterface, RootStateInterface> = {
|
||||
someGetter (/* context */) {
|
||||
// your code
|
||||
getTasks: (state: CacheStateInterface) => {
|
||||
return state.tasks;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user