Open elias098 opened 2 weeks ago
Right now we do swap templates completely depending on the unique ID of every macro call. I believe there's a comment in the codebase to that effect too, though in this particular instance tossing a few checks in wouldn't terribly large overhead so we could support this usecase.
You could, if you wanted, drive the props from the conditional and pass it into a single rsx! call which won't swap templates between renders.
We don't guarantee this behavior, but I think this should be handled by light_diff_template. That code doesn't seem to be working correctly
Problem
https://discord.com/channels/899851952891002890/943190605067079712/1229957121496580197
With the below code it recreates the
ListTest
component whenListTest2
goes back to its initial state. As in if it started witha % 3 == 0
then it recreates it every timea % 3 == 0
Steps To Reproduce
Expected behavior
The way i had it explained to me is that it shouldnt recreate the component at all with the above code
Environment:
Questionnaire