Skip to content

Commit 295c7a4

Browse files
committed
data-effect
1 parent 8138e88 commit 295c7a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ ServerSentEventGenerator.ExecuteScript(
391391

392392
### Implementation
393393

394-
***Must*** call `ServerSentEventGenerator.send` with event type `datastar-patch-elements`, sending a `script` tag containing the JavaScript to execute. If `autoRemove` is `true`, `data-on-load="el.remove()"` must be added to the `script` tag. If `attributes` exist, they must be added to the `script` tag.
394+
***Must*** call `ServerSentEventGenerator.send` with event type `datastar-patch-elements`, sending a `script` tag containing the JavaScript to execute. If `autoRemove` is `true`, `data-effect="el.remove()"` must be added to the `script` tag. If `attributes` exist, they must be added to the `script` tag.
395395

396396
**Data format** (only include non-defaults):
397397
- `selector body\n`

0 commit comments

Comments
 (0)