refactor(store): reset store on unmount and skip re-creating hooks on re-mount
This commit is contained in:
@@ -121,6 +121,7 @@ const el = ref<HTMLDivElement>()
|
|||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
dispose()
|
dispose()
|
||||||
|
$reset()
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user