Skip to content

Commit

Permalink
allow turboStream on anchors too and convenience for replaceComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrichau committed Oct 12, 2024
1 parent 0f7d6f7 commit cdac64c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*Seaside-HotwireTurbo-Core
turboStreamCallback: aValuable

self dataAttributeAt: 'turbo-stream' put: true.
self url addField: (self storeCallback: ((WATurboStreamCallback on: aValuable) context: canvas context))
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
convenience
replaceComponent: aComponent with: aRenderable

self replace: aComponent turboframeDecoration id with: aRenderable

0 comments on commit cdac64c

Please sign in to comment.