Commit 66a3232
refactor(material/snack-bar): Remove NgZone.onMicrotaskEmpty dependency (#28370)
`onMicrotaskEmpty` will not emit when an application is using
`NoopNgZone`. There wasn't a test around this bit of code when it was
added so I can't completely sure this doesn't break anything. It's
unclear to me whether it's meant to wait for rendering or just meant to
be async. It's possible that simply making the code execute in the
microtask queue will have the same overall effect as before.
(cherry picked from commit 96c1b85)1 parent 6103cd5 commit 66a3232
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
228 | 227 | | |
229 | 228 | | |
230 | 229 | | |
231 | | - | |
232 | | - | |
| 230 | + | |
| 231 | + | |
233 | 232 | | |
234 | 233 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
240 | 237 | | |
241 | 238 | | |
242 | 239 | | |
| |||
0 commit comments