git ssb

16+

Dominic / patchbay



Tree: 9c5fb9afa9248c901294db9eac5e350da9bc055d

Files: 9c5fb9afa9248c901294db9eac5e350da9bc055d / app / sync / initialise / suggestionCaches.js

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

Built with git-ssb-web