Last active
January 14, 2019 12:13
-
-
Save ylv-io/835280ff8f5b054c4b0352ad61ddcddf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| let account = getAccount(); | |
| let accountInterval = setInterval(() => { | |
| if (getAccount() !== account) { | |
| account = getAccount(); | |
| // update UI, state, pull data | |
| updateEverything(); | |
| } | |
| }, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment