Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Actions and Unistore #134

Open
gopalramadugu opened this issue Jan 22, 2019 · 0 comments
Open

Multiple Actions and Unistore #134

gopalramadugu opened this issue Jan 22, 2019 · 0 comments

Comments

@gopalramadugu
Copy link

gopalramadugu commented Jan 22, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant