# טעינה מחדש/רענון של ווידג'ט בעת רענון של ווידג'ט אחר

**URL:** <https://meta.discourse.org/t/reload-refresh-a-widget-on-refresh-of-another-widget/204356>\
**Category:** Development\
**Created:** [24 בספטמבר,‏ 2021,‏ 6:16am UTC](https://meta.discourse.org/t/reload-refresh-a-widget-on-refresh-of-another-widget/204356 "2021-09-24T06:16:46Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [28 בספטמבר,‏ 2021,‏ 4:35pm UTC](https://meta.discourse.org/t/reload-refresh-a-widget-on-refresh-of-another-widget/204356/7 "2021-09-28T16:35:50Z")

</div>

Hi,

I haven’t tried it locally but something that might work:

In your main script add this api call:

```javascript
api.dispatchWidgetAppEvent('topic-timeline-bookmark', 'force-refresh', 'post-stream:refresh');

```

In your widget code, declare this function:

```javascript
api.createWidget("topic-timeline-bookmark", {  
  // code omitted

  // might be able to name it schedule-rerender 
  // directly in the api call instead of force-refresh
  // and avoid having this function
  forceRefresh() {
    this.scheduleRerender();
  }
});

```

I think this should work, if it doesn’t let me know, I will try to build a working example locally.

---

_[View the full topic](https://meta.discourse.org/t/reload-refresh-a-widget-on-refresh-of-another-widget/204356)._
