# Is there an event that fires when topic-lists are reloaded?

**URL:** <https://meta.discourse.org/t/is-there-an-event-that-fires-when-topic-lists-are-reloaded/78523>\
**Category:** Development\
**Created:** [1월 20, 2018, 6:22오전 UTC](https://meta.discourse.org/t/is-there-an-event-that-fires-when-topic-lists-are-reloaded/78523 "2018-01-20T06:22:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [1월 20, 2018, 6:56오전 UTC](https://meta.discourse.org/t/is-there-an-event-that-fires-when-topic-lists-are-reloaded/78523/3 "2018-01-20T06:56:55Z")

</div>

Another way is to add an observer in the `topic-list` component that observes `topics.[]` and re-runs masonry after render. i.e. something like:

```plaintext
withPluginApi(0.8.16, () api => {
  api.modifyClass('component:topic-list', {
     masonryObserver: function() {
        // update masonry here, probably wrapped in Ember.run.scheduleOnce('afterRender', () => {})
     }.observes('topics.[]')
  })
})

```

---

_[View the full topic](https://meta.discourse.org/t/is-there-an-event-that-fires-when-topic-lists-are-reloaded/78523)._
