Magento 2.3: Custom template override not showing on first load

I have override sales_order_create_index.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="form_account">
            <action method="setTemplate">
                <argument name="template" xsi:type="string">Custom_Orders::order/create/form/account.phtml</argument>
            </action>
        </referenceBlock>
    </body>
</page>

But on the initial page load, the default template is shown, but on refresh, the custom template shows up.

Magento version: 2.3.1

Can anyone help me with this?

Thanks



from Active questions tagged magento-enterprise - Magento Stack Exchange

Click link to view all answer https://magento.stackexchange.com/questions/288026/magento-2-3-custom-template-override-not-showing-on-first-load