mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Add library to manage async resource Make Store reusable for easier testing Move plugin to libs Add getTaskFor getter with tests
13 lines
358 B
JavaScript
13 lines
358 B
JavaScript
import { flattenAndNamespace } from 'client/libs/store/helpers/internals';
|
|
import * as user from './user';
|
|
import * as tasks from './tasks';
|
|
|
|
// Getters should be named as 'getterName' and can be accessed as 'namespace:getterName'
|
|
// Example: gems in user.js -> 'user:gems'
|
|
|
|
const getters = flattenAndNamespace({
|
|
user,
|
|
tasks,
|
|
});
|
|
|
|
export default getters; |