drive-by: promiseInterval fetches on creation
This commit is contained in:
parent
10e3cb588a
commit
e682a372d8
1 changed files with 0 additions and 2 deletions
|
|
@ -118,8 +118,6 @@ const notificationsFetcher = (credentials) => {
|
||||||
const startFetching = () => {
|
const startFetching = () => {
|
||||||
if (interval.value) throw new Error('Interval already exists!')
|
if (interval.value) throw new Error('Interval already exists!')
|
||||||
|
|
||||||
fetchAndUpdate()
|
|
||||||
|
|
||||||
interval.value = promiseInterval(fetchAndUpdate, 10000)
|
interval.value = promiseInterval(fetchAndUpdate, 10000)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue