Last active
December 29, 2018 18:02
-
-
Save BrodaNoel/8a67863d0c84f5f5711ca85248014cfd to your computer and use it in GitHub Desktop.
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
duix.subscribe('user', (user) => { | |
console.log(user); | |
}); | |
// or | |
duix.subscribe('user', (newUserValue, prevUserValue) => { | |
console.log('New User value is:', newUserValue); | |
console.log('Previous User value was:', prevUserValue); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment