refactor(store/observers/instance): Don't fetch lists eagerly (#1448)

They are already fetched on-demand when the community column is loaded.
This commit is contained in:
Sorin Davidoi 2019-08-29 16:55:40 +02:00 committed by Nolan Lawson
parent 7d8f19a672
commit b01191037e
1 changed files with 0 additions and 2 deletions

View File

@ -1,5 +1,4 @@
import { updateInstanceInfo, updateVerifyCredentialsForInstance } from '../../_actions/instances'
import { updateListsForInstance } from '../../_actions/lists'
import { createStream } from '../../_actions/stream/streaming'
import { updatePushSubscriptionForInstance } from '../../_actions/pushSubscription'
import { updateCustomEmojiForInstance } from '../../_actions/emoji'
@ -42,7 +41,6 @@ async function doRefreshInstanceDataAndStream (store, instanceName) {
async function refreshInstanceData (instanceName) {
// these are all low-priority
scheduleIdleTask(() => updateCustomEmojiForInstance(instanceName))
scheduleIdleTask(() => updateListsForInstance(instanceName))
scheduleIdleTask(() => updatePushSubscriptionForInstance(instanceName))
// these are the only critical ones