Hello guys, i'm having annoying problem with volt partials.
I have a partial volt to reuse in my view like this:
{{ partial('front/elements/cupom', ['cupons': cupons, 'newsletter': true]) }} {% if cuponsExpirados is not empty %} <h3 class="text"> Cupons Expirados </h3> {{ partial('front/elements/cupom', ['cupons': cuponsExpirados]) }} {% endif %}
As you can see im sending "newsletter: true" to first partial, but the second partial is having this assigned in their scope.
How can i avoid that problem? I dont need the "newsletter" var assigned in second partial.
Volt cant handle with scope like twig or blade? Everything assigned will be global?