symfony / ux

Symfony UX initiative: a JavaScript ecosystem for Symfony
https://ux.symfony.com/
MIT License
849 stars 313 forks source link

[LiveComponent] Prevent data-loading in child component #440

Open EikiProg opened 2 years ago

EikiProg commented 2 years ago

Actualy if you rerender the child it trigger the data-loading for that child and not the parent, but if you rerender the parent all the childrens trigger the loading state and that wouldn't be correct for all use case.

Is there a way to prevent the loading state in a child component when the parent rerender ?

weaverryan commented 2 years ago

Hmm. My instinct tells me that the default behavior should be the following:

When a parent component loads, it does NOT trigger the loading state in any child components.

So I would consider the current state a bug. PR welcome to fix that :). And if someone needs the opposite situation at some point in the future, we could discuss how to accommodate that.

carsonbot commented 6 months ago

Hey, thanks for your report! There has not been a lot of activity here for a while. Is this bug still relevant? Have you managed to find a workaround?

carsonbot commented 6 months ago

Could I get a reply or should I close this?

carsonbot commented 5 months ago

Hey,

I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!