Boost auto-rotate triggers Composer Service reload
Summary
When accessed via quote button / share to group IN the boost rotator OR via the sidebar nav, auto-rotation in the Boost rotator is triggering the composer service ngOnDestroy
which in turn resets the state of the service.
Symptomatically this means that the audience selector will jump back to channel after you select something.
Steps to reproduce
- Have Boost auto-rotation turned on.
- Open composer via sidebar nav (or another place mentioned above)
- Select a group
- Wait for rotator - audience selector resets. (also you can mouse in and out quickly)
Platform information
Web.
What is the current bug behavior?
Audience selector resets along with various other things that the user has set in the composer. Following a console.trace
in the composer services ngOnDestroy
SEEMS to tell us that the rendering and unrendering of the Boost rotator is causing refreshes.
What is the expected correct behavior?
Should not reset every time the Boost rotator changes.
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
Possible fixes
Provider should probably be defined at a higher level unless there is a better way we can think of. This is probably not as simple as it sounds on paper though as we may run into weirdness in other modules.