chore: code golf text_effect a bit (#9814)

Co-authored-by: Rich Harris <rich.harris@vercel.com>
pull/9824/head
Rich Harris 9 months ago committed by GitHub
parent c0150b0bd3
commit 548ffdd3bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -377,10 +377,7 @@ export function class_name(dom, value) {
* @returns {void} * @returns {void}
*/ */
export function text_effect(dom, value) { export function text_effect(dom, value) {
render_effect(() => { render_effect(() => text(dom, value()));
const string = value();
text(dom, string);
});
} }
/** /**

Loading…
Cancel
Save