1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-06-05 22:09:25 +02:00

feature: add store for tracking network request to API

This commit is contained in:
Ondřej Synáček
2020-12-20 12:07:37 +01:00
parent 4fad8e442d
commit 128b03344b
5 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
import Request from './request'
export {
Request,
}

View File

@@ -0,0 +1,9 @@
export default class Request {
constructor({
id,
error,
}) {
this.id = id
this.error = error
}
}

View File

@@ -1,7 +1,9 @@
import configStore from './configStore'
import eventStore from './eventStore'
import requestStore from './requestStore'
export {
configStore,
eventStore,
requestStore,
}

View File

@@ -0,0 +1,3 @@
import { writable } from 'svelte/store'
export default writable(null)