Created
September 30, 2023 04:35
-
-
Save YonatanKra/ed155e457ad019349e35a7e7da714c9b to your computer and use it in GitHub Desktop.
Tauri-demo: extract auth change event handler
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
#handleAuthChange = () => { | |
this.dispatchEvent(new CustomEvent('user-status-change')); | |
} | |
constructor() { | |
super(); | |
onAuthStateChanged(getAuth(), this.#handleAuthChange); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment