chore: code golf text_effect a bit (#9814)

Co-authored-by: Rich Harris <rich.harris@vercel.com>
pull/9824/head
Rich Harris 1 year 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}
*/
export function text_effect(dom, value) {
render_effect(() => {
const string = value();
text(dom, string);
});
render_effect(() => text(dom, value()));
}
/**

Loading…
Cancel
Save