mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
- Angular's bootstrapping process is async and sometimes storybook triggers two re renders. In these cases, we reach an inconsistent state in which we can't properly dispose the old view and listeners get duplicated. With this debounce function we make sure we're accounting for those times.