-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race conditions with events setup
- Loading branch information
Showing
3 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import { Auth } from "./api"; | ||
import { Auth } from "./api" | ||
|
||
export const analyticsReadyEvent = "decorator-analytics-ready"; | ||
export const analyticsReady = new CustomEvent('analytics-ready-event', { | ||
bubbles: true, | ||
}) | ||
|
||
export type AnalyticsLoaded = CustomEvent<Auth> | ||
|
||
export const analyticsReady = (response: Auth) => new CustomEvent(analyticsReadyEvent, { | ||
export const analyticsLoaded = new CustomEvent<Auth>('analytics-loaded-event', { | ||
bubbles: true, | ||
detail: response | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters