UX: Rerender the like before the promise resolves.
This commit is contained in:
parent
3a78321c63
commit
9d86ffe412
|
@ -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;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue