Skip to content

Commit

Permalink
Update - Correct typo in 04_streams.md (#155)
Browse files Browse the repository at this point in the history
Correct type in '##But What About Running JavaScript?' section, paragraph 2, sentence 1.
  • Loading branch information
jbk2 authored Jan 16, 2024
1 parent b8f9cc3 commit b257377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _source/handbook/04_streams.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ The same is especially true for WebSocket updates. On poor connections, or if th

Turbo Streams consciously restricts you to seven actions: append, prepend, (insert) before, (insert) after, replace, update, and remove. If you want to trigger additional behavior when these actions are carried out, you should attach behavior using <a href="https://stimulus.hotwired.dev">Stimulus</a> controllers. This restriction allows Turbo Streams to focus on the essential task of delivering HTML over the wire, leaving additional logic to live in dedicated JavaScript files.

Embracing these constraints will keep you from turning individual responses in a jumble of behaviors that cannot be reused and which make the app hard to follow. The key benefit from Turbo Streams is the ability to reuse templates for initial rendering of a page through all subsequent updates.
Embracing these constraints will keep you from turning individual responses into a jumble of behaviors that cannot be reused and which make the app hard to follow. The key benefit from Turbo Streams is the ability to reuse templates for initial rendering of a page through all subsequent updates.

## Custom Actions

Expand Down

0 comments on commit b257377

Please sign in to comment.