-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch 2 #95
base: main
Are you sure you want to change the base?
Patch 2 #95
Conversation
✅ Deploy Preview for epic-fermat-9d85e9 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
<turbo-stream action="replace" target="message_1"> | ||
<template> | ||
<div id="message_1"> | ||
This div will replace the existing element with the DOM ID "message_1". | ||
</div> | ||
</template> | ||
</turbo-stream> | ||
|
||
<turbo-stream action="update" target="unread_count"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep it simple with one example only and a link to all possible actions
``` | ||
|
||
Note that every `<turbo-stream>` element must wrap its included HTML inside a `<template>` element. | ||
|
||
You can render any number of stream elements in a single stream message from a WebSocket, SSE or in response to a form submission. | ||
|
||
## Actions With Multiple Targets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved at the bottom of the page
@dhh another one 👍 |
Merge #94 before this one