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

Hi,

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

In your main script add this api call:

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

In your widget code, declare this function:

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.