Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 232fc6e

Browse files
authored
fix(core): avoid race condition between registration and activation (#923)
1 parent 6fdd328 commit 232fc6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/core/media-marshaller/media-marshaller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export class MediaMarshaller {
4747

4848
constructor(protected matchMedia: MatchMedia,
4949
protected breakpoints: BreakPointRegistry) {
50-
this.registerBreakpoints();
5150
this.matchMedia.observe().subscribe(this.activate.bind(this));
51+
this.registerBreakpoints();
5252
}
5353

5454
/**

0 commit comments

Comments
 (0)