developit / developit/unistore
Multiple Actions and Unistore
Open
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
Description
I am very new to this library. I am trying to understand how can I combine all the actions and pass arguments like store, state and payload of a rest call. one of the examples here does that but only does for a single action. Can I combine multiple actions and send the parameters like below ? is there way to do in one place and not repeat this code in every action ?
export const actions = (store) => ({
search: (...args) => search(store, ...args),
});
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.