mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 13:09:41 +00:00
Add library to manage async resource Make Store reusable for easier testing Move plugin to libs Add getTaskFor getter with tests
14 lines
No EOL
361 B
JavaScript
14 lines
No EOL
361 B
JavaScript
import { flattenAndNamespace } from 'client/libs/store/helpers/internals';
|
|
|
|
import * as user from './user';
|
|
import * as tasks from './tasks';
|
|
|
|
// Actions should be named as 'actionName' and can be accessed as 'namespace:actionName'
|
|
// Example: fetch in user.js -> 'user:fetch'
|
|
|
|
const actions = flattenAndNamespace({
|
|
user,
|
|
tasks,
|
|
});
|
|
|
|
export default actions; |