Skip to content
This repository was archived by the owner on Apr 7, 2023. It is now read-only.

Improvement of favorite button re-render delay. #33

Merged
merged 3 commits into from
Oct 2, 2016

Conversation

IzumiSy
Copy link
Contributor

@IzumiSy IzumiSy commented Oct 1, 2016

Decreases re-render delay of favorite button after clicking it. dispatch does not wait for API response anymore.

Verified

This commit was signed with the committer’s verified signature.
morozov Sergei Morozov
@k0kubun
Copy link
Owner

k0kubun commented Oct 2, 2016

I think we should render it in both places in case of favorite request failure.

} else {
client.favoriteStatus(tweet.id_str, callback);
client.favoriteStatus(tweet.id_str, (()=>{}));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean that we should keepcallback in addition to updateTweet.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh gotcha.

Verified

This commit was signed with the committer’s verified signature.
morozov Sergei Morozov
…nt_favorite_delay

Verified

This commit was signed with the committer’s verified signature.
morozov Sergei Morozov
@IzumiSy
Copy link
Contributor Author

IzumiSy commented Oct 2, 2016

Updated

@k0kubun
Copy link
Owner

k0kubun commented Oct 2, 2016

👍

@k0kubun k0kubun merged commit 691185b into k0kubun:master Oct 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants