WatchEffect for Network Status
User use watch watchEffect(() => { if(networkStore.isOnline){ loadItems(); } }) Assistant You're on the right track! If you're using Vue 3's Composition API and want to reactively call `loadItems()` whenever `networkStore.isOnline` becomes `true`, here's a refined version using `watchEffect`: import { watchEffect } from 'vue'; watchEffect(() => { if (networkStore.isOnline) { console.log('Online ✅'); loadItems(); } […]