Skip to content

Conversation

Justineantoine
Copy link
Collaborator

Fixed example: you were right about the layout in layout, everything was fine until i added a ServerTemplate in a child layout and it displayed itself in both the parent and the child.

To avoid to call state.flush() if the state is already flushing, i added a _is_flushing attribute to the State class

@Justineantoine
Copy link
Collaborator Author

@Thibault-Pelletier FYI

@jourdain
Copy link
Collaborator

I like it and I was thinking of a context manager too for dealing with the flushing scope...

LGTM, let me know if you need me to merge...

@Justineantoine Justineantoine force-pushed the avoid-nested-flushes branch 2 times, most recently from 3559320 to 1de86e7 Compare October 22, 2025 13:13
@Justineantoine Justineantoine merged commit a9bb9a5 into master Oct 22, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants