Move inbox collection to the background page
No more waiting, no more messy fetch logic. Background page bootstraps the inbox and keeps it up to date.
This commit is contained in:
parent
a5bc261365
commit
44b1e5c88e
5 changed files with 55 additions and 24 deletions
|
@ -229,17 +229,7 @@
|
|||
only: number
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
fetchActive: function(options) {
|
||||
return this.fetch(_.extend(options, {
|
||||
index: {
|
||||
name: 'inbox', // 'inbox' index on active_at
|
||||
order: 'desc' // ORDER timestamp DESC
|
||||
}
|
||||
// TODO pagination/infinite scroll
|
||||
// limit: 10, offset: page*10,
|
||||
}));
|
||||
}
|
||||
|
||||
});
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue