Nested actions
See original GitHub issueHi, Following code does not work:
@Action
changeCurrentDistrict(district: number) {
if (!this.doesDistrictExist(district)) {
return false;
}
this.setCurrentDistrict(district);
return true;
}
@Action
previousDistrict() {
return this.changeCurrentDistrict(this.currentDistrict - 1);
}
@Action
nextDistrict() {
return this.changeCurrentDistrict(this.currentDistrict + 1);
}
Error:
Unhandled promise rejection Error: "ERR_ACTION_ACCESS_UNDEFINED: Are you trying to access this.someMutation() or this.someGetter inside an @Action?
That works only in dynamic modules.
If not dynamic use this.context.commit("mutationName", payload) and this.context.getters["getterName"]
How can I fix that? Thanks
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Nested actions - IBM
A nested action is any action started when an action is already in progress. Nested actions can be started only when a hook...
Read more >Nested composite actions · Issue #862 · actions/runner - GitHub
I would like to be able to create a composite action that contains other composite actions. This does not seem to currently work....
Read more >Nesting Actions in QTP - All About Automation Testing
By nesting actions, you can: Maintain the modularity of your test. Run one or more actions based on the results of a conditional...
Read more >Error Handling Nested Actions in Power Automate
Hello, I was looking at a way to get the error message from nested actions inside a Scope container. I have the example...
Read more >GitHub Composite Actions - STOP wasting your time and ...
A composite run steps action allows you to combine multiple workflow run steps within one action. For example, you can use this feature...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This still needs to be addressed. I have the same issue.
Hi, Thank you for your answer. Please take a look at my first code. I had done it like you showed it and still - the error occurs. What’s wrong then?