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

await proxy store aliased action's result #239

Open
wswoodruff opened this issue Jan 7, 2020 · 1 comment
Open

await proxy store aliased action's result #239

wswoodruff opened this issue Jan 7, 2020 · 1 comment

Comments

@wswoodruff
Copy link

wswoodruff commented Jan 7, 2020

I looked around in the docs and issues and might have missed it, but couldn't find a solution to provide me with an aliased action's result in a proxy store.

As I learn how to work in this distributed area, to avoid headache and to ensure I know where state is, I've forced all proxy store actions to be aliased.

Normally my actions return an array for [err, result] — I deal with that in the dispatchResponder for my background store — but I'd like to await for [err, result] in my containers.

The intention is for giving user feedback when they, ex: click a login button. We want to tell the user if there was an error, or we want to clear the form and route to another page or show a success message or whatever.

@jlalmes
Copy link

jlalmes commented Nov 12, 2020

I made this PR - does the solve the issue you are describing?
#262

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

2 participants