# Как вручную добавить содержимое в pluginOutlet после AJAX-запроса? И как перерендерить или обновить pluginOutlet?

**URL:** <https://meta.discourse.org/t/how-to-manually-add-contents-to-pluginoutlet-after-ajax-call-and-how-to-rerender-or-refresh-a-pluginoutlet/266640>\
**Category:** Development\
**Created:** [30.Май.2023 19:37:13 UTC](https://meta.discourse.org/t/how-to-manually-add-contents-to-pluginoutlet-after-ajax-call-and-how-to-rerender-or-refresh-a-pluginoutlet/266640 "2023-05-30T19:37:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Pixl8\_Nick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pixl8_nick/32/297128_2.png) [@Pixl8\_Nick](https://meta.discourse.org/u/Pixl8_Nick)\
**Post date:** [31.Май.2023 12:55:36 UTC](https://meta.discourse.org/t/how-to-manually-add-contents-to-pluginoutlet-after-ajax-call-and-how-to-rerender-or-refresh-a-pluginoutlet/266640/3 "2023-05-31T12:55:36Z")

</div>

Большое спасибо, Крис! Это очень помогло.

Я выбрал второй подход с использованием компонента, так как виджеты постепенно выводятся из употребления. Кроме небольшой опечатки в вызове функции — в файле .hbs должно быть `{{did-insert this.fetchNavLinks}}` — всё работает!

Отлично, что у нас есть `did-insert`, это большое облегчение! Я теперь завершил задачу. 🙇‍♂️

---

_[View the full topic](https://meta.discourse.org/t/how-to-manually-add-contents-to-pluginoutlet-after-ajax-call-and-how-to-rerender-or-refresh-a-pluginoutlet/266640)._
