John Simons

Results comments of John Simons

@joepuzzo I like the version with no `useEffect`! But I don't think your code snippet handles the setter being called with a function. Not hard to update it, looking at...

I see what's happening, it's setting to the same value it already is, so the `input.value =` gets optimized away. One workaround is to set to raw updated value first,...

Good stuff, I'm referring to this on my fork of cowsay at https://github.com/johnnysprinkles/cowsay. The superfluous escapes aren't an issue there, using non-raw template literals.

It's not but I'll boil down to a repro case, soon.

I ended up kind of forking this project, with pure Javascript cows instead of text file Perl cows. I think JS Cows are the Cows of the future. https://github.com/johnnysprinkles/cowsay/tree/master/cows

That would be a sizeable PR! And probably warrant a v2 release. This fork also does a number of other things, curious how much you'd be interested in a PR...

Hmm, it's diverged quite a bit, not really a fork more like looking at your implementation for reference. I guess I'm trying to gauge your interest in owning and maintaining...

I'm not an owner of this library...

I'd rather not dig around in the Svelte internals. My workaround is to take a "destroyed" property and not literally destroy it but wrap all its markup in an `{#if}`....