You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Variables created outside a recursive children nav loop and referenced inside it, 'hold' the original value instead of changing it. I've used letters here as it's a bit easier to see, but in our real code we are using ints; the same issue occurs.
If your scoped variables have trouble making it through to the next recursion, you can glue them to children like this: {{ recursive children:my_scoped_variable }}.
Bug description
Variables created outside a recursive children nav loop and referenced inside it, 'hold' the original value instead of changing it. I've used letters here as it's a bit easier to see, but in our real code we are using ints; the same issue occurs.
Navigation
My basic 'main' nav I created is here.
Antlers
The actual antler code is basically copy/pasted from the docs and is a simple recursive children loop.
Result:
Expected result:
How to reproduce
Logs
No response
Environment
Installation
Starter Kit using via CLI
Antlers Parser
regex (default)
Additional details
No response
The text was updated successfully, but these errors were encountered: