Skip to content
Discussion options

You must be logged in to vote

Option 1 works exactly as expected (or rather, doesn't work exactly as expected): the Session you store is a deep clone of the values at the moment that you store it, but there doesn't (and can't, and shouldn't) exist any connection between the original and the clone.

Option 2 is also doing what it should do, although it's not what you're hoping it will do: you are reading reactively from state.selected_session inside the effect controlling the Show, not inside the Content, so it does rerender the Content again. This is what would happen with any component and any signal being read in this way and passed to a component, rather than passed to the component as a signal. To put it another wa…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@mahdi739
Comment options

@gbj
Comment options

gbj Jun 5, 2025
Maintainer

Answer selected by mahdi739
Comment options

You must be logged in to vote
1 reply
@gbj
Comment options

gbj Jun 7, 2025
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants