UX: Rerender the like before the promise resolves.

This commit is contained in:
Robin Ward 2016-02-16 12:39:09 -05:00
parent 3a78321c63
commit 9d86ffe412
1 changed files with 4 additions and 1 deletions

View File

@ -379,7 +379,10 @@ export default createWidget('post', {
const likeAction = post.get('likeAction'); const likeAction = post.get('likeAction');
if (likeAction && likeAction.get('canToggle')) { if (likeAction && likeAction.get('canToggle')) {
return likeAction.togglePromise(post);
const promise = likeAction.togglePromise(post);
this.scheduleRerender();
return promise;
} }
}, },