mytakedotorg/mtdo

Optimistic UI Updates

オープン

#183 opened on 2018/04/02

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Java (3 件のフォーク)auto 404
enhancementfrontendgood first issue

Repository metrics

Stars
 (16 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

There are places where we can reasonably predict the server response in our app, like when we are logged in and we star a take or follow/unfollow a user. The client side UI state can be updated before the server responds in these cases, and then reverted in the case of a failure response from the server. This will give our app a much snappier feel at a low cost.

(thanks to https://egghead.io/lessons/react-course-overview-optimistic-ui-updates-in-react)

See ReactionContainer.tsx for these scenarios.

コントリビューターガイド