Files: 2f8b5a42a327baeb86c4cc6af56c65848948d0ec / app / sync / initialize / suggests.js
497 bytesRaw
1 | const nest = require('depnest') |
2 | |
3 | exports.gives = nest('app.sync.initialize') |
4 | |
5 | exports.needs = nest({ |
6 | 'about.async.suggest': 'first', |
7 | 'channel.async.suggest': 'first', |
8 | // 'channel.obs.recent': 'first' |
9 | }) |
10 | |
11 | exports.create = (api) => { |
12 | var nav = null |
13 | |
14 | return nest({ |
15 | 'app.sync.initialize': function initializeSuggests () { |
16 | api.about.async.suggest() |
17 | api.channel.async.suggest() |
18 | // api.channel.obs.recent()() TODO - figure out how to initialise this store |
19 | } |
20 | }) |
21 | } |
22 | |
23 |
Built with git-ssb-web