Skip to content

[StimulusBundle] Document chaining different stimulus_* helpers - #3797

Merged
Kocal merged 1 commit into
symfony:3.xfrom
Amoifr:docs-3794-stimulus-chaining
Aug 20, 2026
Merged

Kocal merged 1 commit into
symfony:3.xfrom
Amoifr:docs-3794-stimulus-chaining

Conversation

@Amoifr

@Amoifr Amoifr commented Aug 20, 2026

Copy link
Copy Markdown
Contributor
Q A
Bug fix? no
New feature? no
Docs? yes
Issues Fix #3794
License MIT

The docs already show chaining the stimulus_controller, stimulus_action and stimulus_target filters with themselves, but not that they can be mixed freely to build all the attributes of an element in one chain, as suggested in #3794. This adds a short section with the example (rendered output verified against the actual helpers) and a unit test covering mixed chaining, which no test exercised before.

@Kocal

Kocal commented Aug 20, 2026

Copy link
Copy Markdown
Member

Again, please target the branch 3.x...

@Amoifr
Amoifr force-pushed the docs-3794-stimulus-chaining branch from 4a6474e to 41fa3ea Compare August 20, 2026 13:38
@Amoifr
Amoifr requested a review from Kocal as a code owner August 20, 2026 13:38
@Amoifr
Amoifr changed the base branch from 2.x to 3.x August 20, 2026 13:38
@Amoifr

Amoifr commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Done, rebased and retargeted to 3.x — and noted for good this time: 3.x it is for everything ux. Sorry for the repeated 2.x reflex! Suite green on 3.x (21 tests).

@github-actions

Copy link
Copy Markdown
Contributor

📊 Packages dist files size difference

Thanks for the PR! Here is the difference in size of the packages dist files between the base branch and the PR.
Please review the changes and make sure they are expected.

FileBefore (Size / Gzip)After (Size / Gzip)
LazyImage
controller.d.ts 395 B / 257 B Removed
controller.js 904 B / 457 B Removed
LiveComponent
live_controller.js 82.76 kB / 18.4 kB 82.85 kB0% / 18.41 kB0%
Map
abstract_map_controller.d.ts 7.6 kB / 1.49 kB 7.29 kB-4% 📉 / 1.46 kB-2% 📉
abstract_map_controller.js 4.92 kB / 1.4 kB 4.65 kB-5% 📉 / 1.26 kB-10% 📉
Map (Bridge Google)
map_controller.d.ts 10.56 kB / 1.92 kB 10.26 kB-3% 📉 / 1.9 kB-1% 📉
map_controller.js 12.9 kB / 3.19 kB 11.25 kB-13% 📉 / 2.84 kB-11% 📉
Map (Bridge Leaflet)
map_controller.d.ts 9.92 kB / 1.84 kB 9.61 kB-3% 📉 / 1.81 kB-2% 📉
map_controller.js 12.45 kB / 3.36 kB 11.38 kB-9% 📉 / 3.17 kB-6% 📉
React
register_controller.d.ts 444 B / 264 B 578 B+30% 📈 / 318 B+20% 📈
register_controller.js 936 B / 452 B 1.81 kB+98% 📈 / 816 B+81% 📈
StimulusBundle
loader.js 2.87 kB / 948 B 2.97 kB+4% 📈 / 972 B+3% 📈
Svelte
components.d.ts 200 B / 150 B Removed
components.js 46 B / 69 B Removed
loader.d.ts 435 B / 217 B Removed
loader.js 553 B / 313 B Removed
register_controller.d.ts 384 B / 235 B Removed
register_controller.js 531 B / 303 B Removed
render_controller.d.ts 629 B / 353 B Removed
render_controller.js 1.05 kB / 493 B Removed
Swup
controller.d.ts 1012 B / 360 B Removed
controller.js 1.71 kB / 653 B Removed
TogglePassword
controller.d.ts 896 B / 355 B Removed
controller.js 2.64 kB / 1.07 kB Removed
style.min.css 312 B / 218 B Removed
Translator
translator_controller.js 7.17 kB / 2.19 kB 7.39 kB+3% 📈 / 2.29 kB+5% 📈
Turbo
mercure_stream_source_element.d.ts Added 11 B / 66 B
mercure_stream_source_element.js Added 1.06 kB / 484 B
turbo_stream_controller.js 1.11 kB / 545 B 1.47 kB+32% 📈 / 721 B+32% 📈
Typed
controller.d.ts 1.9 kB / 501 B Removed
controller.js 1.8 kB / 638 B Removed
Vue
register_controller.d.ts 327 B / 218 B 461 B+41% 📈 / 281 B+29% 📈
register_controller.js 1.3 kB / 587 B 2.06 kB+58% 📈 / 869 B+48% 📈

@Kocal Kocal added the Documentation Improvements or additions to documentation label Aug 20, 2026
@Kocal
Kocal force-pushed the docs-3794-stimulus-chaining branch from 41fa3ea to cb86fed Compare August 20, 2026 20:33
@Kocal
Kocal force-pushed the docs-3794-stimulus-chaining branch from cb86fed to 5bed5f1 Compare August 20, 2026 20:36
@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Aug 20, 2026
@Kocal

Kocal commented Aug 20, 2026

Copy link
Copy Markdown
Member

Thank you @Amoifr.

@Kocal
Kocal merged commit 84a6803 into symfony:3.x Aug 20, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements or additions to documentation Status: Reviewed Has been reviewed by a maintainer StimulusBundle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[StimulusBundle][Docs] - Chaining

3 participants