git ssb

16+

Dominic / patchbay



Tree: c1a1dc7a8dc3f88bd242e418cb5715798385f4e4

Files: c1a1dc7a8dc3f88bd242e418cb5715798385f4e4 / app / sync / initialise / suggestionCaches.js

498 bytesRaw
1const nest = require('depnest')
2
3exports.gives = nest('app.sync.initialise')
4
5exports.needs = nest({
6 'about.async.suggest': 'first',
7 'channel.async.suggest': 'first'
8})
9
10exports.create = function (api) {
11 return nest('app.sync.initialise', init)
12
13 function init () {
14 // lazy load abouts on first use, can be quite heavy during startup
15 setTimeout(() => {
16 console.log('> loading @mentions cache')
17 api.about.async.suggest()
18 }, 20e3)
19 api.channel.async.suggest()
20 }
21}
22

Built with git-ssb-web