Skip to content

Commit 548ffdd

Browse files
authored
chore: code golf text_effect a bit (#9814)
Co-authored-by: Rich Harris <[email protected]>
1 parent c0150b0 commit 548ffdd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/svelte/src/internal/client/render.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,7 @@ export function class_name(dom, value) {
377377
* @returns {void}
378378
*/
379379
export function text_effect(dom, value) {
380-
render_effect(() => {
381-
const string = value();
382-
text(dom, string);
383-
});
380+
render_effect(() => text(dom, value()));
384381
}
385382

386383
/**

0 commit comments

Comments
 (0)