Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix: Schedule bus callbacks in autogen code through NgZone #58

Merged

Conversation

jooskim
Copy link
Contributor

@jooskim jooskim commented Aug 31, 2021

This PR fixes an issue that was identified while testing 1.3.2 locally on VMware Cloud UI workflows. The autogenerated code utilizes autogenerated bus channels, from and to which messages are transmitted outside of Angular Zone based on the changes made in the previous release. At some point after calling an API using the autogenerated service adapter method, results are returned back as a callback which is expected to be running in Angular Zone.

However, the API success callback was still running outside of Angular Zone, so any tasks that would schedule a macro/micro task were running side-by-side with Angular's change detection system instead of being scheduled properly next to the earlier tasks in the queue, ultimately causing the unstable UI state.

Signed-off-by: Josh Kim kjosh@vmware.com

@jooskim jooskim force-pushed the topic/kjosh/ngzone-autogen-fix branch from e305758 to 2f837dc Compare August 31, 2021 17:14
Signed-off-by: Josh Kim <kjosh@vmware.com>
@jooskim jooskim force-pushed the topic/kjosh/ngzone-autogen-fix branch from 2f837dc to 02d0069 Compare August 31, 2021 17:52
@jooskim
Copy link
Contributor Author

jooskim commented Aug 31, 2021

Force-merging since Dave is out on PTO given the important of the fix being available promptly.

@jooskim jooskim merged commit 3bf1746 into vmware-archive:master Aug 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant