I've found that the isolated setting for context_behavior is broken. I've already found fixes, but merge tomorrow the soonest.
UPDATE 2024-04-19
Fixed logic around determining the "root context"
Also I found out that the association from slot to component cannot be defined only within a single context layer, but it must be available "globally" throughout the render execution. That's why, previously, the ChainMap was used. Well, while it can be probably plain Dict instead of ChainMap, but the point is that there was a singleton dict that was passed down the render tree.
TODO:
[ ] I still need to fix the interaction of nested for loops with slots (tests like test_inner_slot_iteration_nested). I will be able to get to it next week. If anyonee's interested, here's the progress so far https://github.com/EmilStenstrom/django-components/pull/445/files
I've found that the
isolated
setting forcontext_behavior
is broken. I've already found fixes, but merge tomorrow the soonest.UPDATE 2024-04-19
ChainMap
was used. Well, while it can be probably plain Dict instead of ChainMap, but the point is that there was a singleton dict that was passed down the render tree.TODO:
test_inner_slot_iteration_nested
). I will be able to get to it next week. If anyonee's interested, here's the progress so far https://github.com/EmilStenstrom/django-components/pull/445/files