deferred post loading in timeline
This commit is contained in:
parent
de71066f19
commit
46f1f93329
2 changed files with 25 additions and 8 deletions
|
@ -92,6 +92,8 @@ export async function getTimeline(last_post_id) {
|
|||
headers: { "Authorization": "Bearer " + client.app.token }
|
||||
}).then(res => res.json());
|
||||
|
||||
return data;
|
||||
|
||||
let posts = [];
|
||||
for (let i in data) {
|
||||
const post_data = data[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue