Skip to content

Conversation

dannyvw
Copy link
Contributor

@dannyvw dannyvw commented Sep 11, 2025

Q A
Bug fix? no
New feature? no
Docs? no
Issues Fix #...
License MIT

Improve performance by removing heavy services if not needed.

@carsonbot carsonbot added the Status: Needs Review Needs to be reviewed label Sep 11, 2025
@carsonbot
Copy link

It looks like you unchecked the "Allow edits from maintainer" box. That is fine, but please note that if you have multiple commits, you'll need to squash your commits into one before this can be merged. Or, you can check the "Allow edits from maintainers" box and the maintainer can squash for you.

Cheers!

Carsonbot

@carsonbot carsonbot changed the title Improve performance for LiveUrlSubscriber Improve performance for LiveUrlSubscriber Sep 11, 2025
@dannyvw dannyvw changed the title Improve performance for LiveUrlSubscriber [LiveComponent] Improve performance for LiveUrlSubscriber Sep 11, 2025
->addTag('kernel.event_subscriber')
->addTag('container.service_subscriber', ['key' => LiveComponentHydrator::class, 'id' => 'ux.live_component.component_hydrator'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not using lazy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same as the other implementations

@Kocal
Copy link
Member

Kocal commented Sep 12, 2025

Nice catch, thanks!

@Kocal Kocal merged commit 02d3274 into symfony:2.x Sep 12, 2025
37 of 40 checks passed
@Kocal Kocal deleted the liveurlsubscriber branch September 12, 2025 20:50
@Kocal Kocal added Performance and removed Feature New Feature labels Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants