We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How would you specify a callback so you can have code execute once the REST call completes?
The text was updated successfully, but these errors were encountered:
Hello @liftyourgame,
You can do it with async-await (or promises) outside of the initialization of the store. This is useful if you have to handle every call individually.
async foo() { try { await this.someAction(); // success } catch (error) { // error } }
Otherwise you can use onSuccess and onError.
Sorry, something went wrong.
I'll close this due to inactivity. Feel free to open a new issue.
No branches or pull requests
How would you specify a callback so you can have code execute once the REST call completes?
The text was updated successfully, but these errors were encountered: