feat: initial sketch with AI
This commit is contained in:
@@ -5,6 +5,7 @@ import { createPinia } from 'pinia'
|
||||
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import { useListsStore } from './stores/lists'
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
@@ -12,3 +13,11 @@ app.use(createPinia())
|
||||
app.use(router)
|
||||
|
||||
app.mount('#app')
|
||||
|
||||
// Offline-first sync: attempt to flush the pending sync queue whenever the
|
||||
// app becomes online again, and once eagerly on startup.
|
||||
const listsStore = useListsStore()
|
||||
window.addEventListener('online', () => {
|
||||
void listsStore.sync()
|
||||
})
|
||||
void listsStore.sync()
|
||||
|
||||
Reference in New Issue
Block a user