Last active
May 15, 2022 23:17
-
-
Save cjfswd/256d7c5ae2150d3fe7918340ff228176 to your computer and use it in GitHub Desktop.
Vue 3 Composition API snippets
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
// Persist at localStorage with watchEffect | |
watchEffect(() => localStorage.setItem('database', JSON.stringify(state))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment