Skip to content

Commit 4577fe3

Browse files
committed
feature #2302 [Turbo] Add generic <Turbo:Stream> component (seb-jean)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Turbo] Add generic `<Turbo:Stream>` component | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | Issues | #2298 (comment) | License | MIT I added a generic Turbo Stream component. To use it, you can do this: ```twig <twig:Turbo:Stream action="turbo_frame_reload" targets="#count-post" /> ``` The rendering is: ```twig <turbo-stream action="turbo_frame_reload" targets="#count-post"></turbo-stream> ``` Commits ------- f0ab499 [Turbo] Add generic `<Turbo:Stream>` component
2 parents fffd7c8 + f0ab499 commit 4577fe3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Turbo/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 2.22.0
4+
5+
- Add `<twig:Turbo:Stream>` component
6+
37
## 2.21.0
48

59
- Add `Helper/TurboStream::append()` et al. methods
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{% props action -%}
2+
3+
<turbo-stream action="{{ action }}" {{- attributes }}></turbo-stream>

0 commit comments

Comments
 (0)