unistore icon indicating copy to clipboard operation
unistore copied to clipboard

Multiple Actions and Unistore

Open gopalramadugu opened this issue 6 years ago • 0 comments

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), });

gopalramadugu avatar Jan 22 '19 01:01 gopalramadugu