unistore
unistore copied to clipboard
Multiple Actions and Unistore
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), });