Skip to main content
Question

Changing states of slot children shouldn't count as a modification

  • June 19, 2026
  • 1 reply
  • 13 views

Julia57

in theory, Slots promise to solve the age-old problem having 10 hidden layers in your list component.

  1. I make a ❖list component wiht a slot that only accepts ❖list-item as children. Let’s say i am using this for a context menu.
  2. I now configure context menu with the options it should have.
  3. I make the context menu into a component, to lock in the content. The contents of the menu should be the same in every user flow where it is shown.
  4. While making my user flows, I set one of the ❖list-items to the hover state, to show the interaction.
  5. This causes the entire Slot to be marked as “modified”, and it will now stop receiving any updates from the ❖context-menu. If I decide to add a delete button to my menu, it will not show up in that instance. 
  6. This runs contrary to the expected behavior when using components. If I had used Instance Swap instead of Slot, the state-change override would have been recognised, and any other changes would have continued to propagate. Instead, the Slot effectively detaches its children, rendering the entire system useless.

I think I saw somewhere that this is intended behavior, but I seriously can’t imagine that’s true. 

1 reply

Kerry_Johnson

I think I saw somewhere that this is intended behavior, but I seriously can’t imagine that’s true. 

You and I both, and well, probably every other slot user eventually wondering why their component in the slot isn’t taking on the updates.

I’m replying to many of the slot threads here to voice my concern about this decision (sorry support team!).  There’s unexpected behavior and then there’s the “why is the gun barrel pointed back at me” behavior that we are experience here.

I’m hoping this is just a temporary measure as they figure a more sane solution out, because I gotta say, soft detaching the components ain’t it, fellas.