<action name="*">
<section name="messages"/>
</action>
We have some actions and don't want to reload messages section when them are called. For current, there is no way so we must customize from js function:
Magento_Customer/js/section-config::getAffectedSections