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

Thanks, @joffreyjaffeux for the reply.

We have tried the code suggested by you, but it’s not working.

  1. Added the below api call
    api.dispatchWidgetAppEvent('topic-timeline-bookmark', 'force-refresh', 'post-stream:refresh');
    And then add the forceRefresh() method in “topic-timeline-bookmark” widget.
    But it is not working.

  2. I also try to rename the second parament of the dispatchWidgetAppEvent method to “schedule-rerender” and removed the forceRefresh function from the widget. This also not works.

I look for the implementation of the api.dispatchWidgetAppEvent method it takes 3 arguments where the second is widgetKey, I think it should be the value returned by the buildKey() function of the widget.
And the third argument is the appEvent which is converted to camelCase and used as the method name for us

https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/lib/plugin-api.js#L1448

Are we missing something?