discourse/app
Osama Sayegh 7f3468e7d5
FIX: Decorate posts that are loaded after the initial render in post stream (#14600)
To clarify, this problem is not about the topic posts stream, it's about posts streams like the user Activity one in the profile page (or in technical terms anything using the `{{user-stream}}` component).

Post decorations are currently applied inside a `didInsertElement` hook of the `{{user-stream}}` component. However, when the user scrolls the component will load more posts but these will be missing decorations because the `didInsertElement` is only fired once at the beginning of the component lifecycle.

This PR makes the component keep track of the last decorated post/DOM node, and when new posts are loaded the component fire an event for each new post and pass the post's DOM node with the event. Our plugin API 

(I noticed this problem when I was working on https://github.com/discourse/discourse-follow/pull/37)

Co-authored-by: Robin Ward <robin.ward@gmail.com>
2021-10-14 08:10:13 +03:00
..
assets FIX: Decorate posts that are loaded after the initial render in post stream (#14600) 2021-10-14 08:10:13 +03:00
controllers FIX: improvements for download local dates (#14588) 2021-10-14 09:22:44 +11:00
helpers DEV: Allow actions to change the manifest endpoint (#14522) 2021-10-06 15:41:52 -05:00
jobs Revert "DEV: add routes_lazy_route to boost boot-up time (#14545)" (#14581) 2021-10-12 17:30:38 +03:00
mailers UX: suspend forever time period messages (#13776) 2021-07-20 14:42:08 +04:00
models FEATURE: Allow admins to permanently delete posts and topics (#14406) 2021-10-13 12:53:23 +03:00
serializers FEATURE: Allow admins to permanently delete posts and topics (#14406) 2021-10-13 12:53:23 +03:00
services PERF: Reduce work when external sources are allowed in `InlineUploads` (#14594) 2021-10-13 18:59:05 +02:00
views FIX: improvements for download local dates (#14588) 2021-10-14 09:22:44 +11:00