Ryan Christian

Results 344 comments of Ryan Christian

I think so? I'm admittedly not a huge fan of TS, but I think that's what we'd need to do, or something along those lines anyways. It's weird (to me,...

This doesn't appear to be a hydration bug actually, as hydration shouldn't diff props, but a bug in Preact's render diffing _I think_. To reproduce: [Repl](https://preactjs.com/repl?code=aW1wb3J0IHsgaHlkcmF0ZSwgcmVuZGVyIH0gZnJvbSAncHJlYWN0JwppbXBvcnQgeyBodG1sIH0gZnJvbSAnaHRtL3ByZWFjdCc7CgpmdW5jdGlvbiBBcHAoKSB7CiAgICByZXR1cm4gaHRtbGAKICAgICAgICA8aW5wdXQgZGVmYXVsdFZhbHVlPSJiYXIiIC8%2BCiAgICBgOwp9Cgpjb25zdCBlbnRyeSA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdhcHAnKQplbnRyeS5pbm5lckhUTUwgPSAnPGlucHV0IHZhbHVlPSJmb28iIC8%2BJwoKLy9oeWRyYXRlKGh0bWxgPCR7QXBwfSAvPmAsIGVudHJ5KTsgIC8vIGhhcyBhIHZhbHVlIG9mIGBmb29gCnJlbmRlcihodG1sYDwke0FwcH0gLz5gLCBlbnRyeSk7IC8vIHNldHMgdGhlIGBkZWZhdWx0VmFsdWVgIHByb3AgY29ycmVjdGx5LCBidXQgY2xlYXJzIGB2YWx1ZWAK) Looks like `render()` will...

> As you can see, the article comes to a different conclusion than the tweet, showing that using use/symbol can even be slower than inline SVGs when the SVGs are...

> Does Preact Signals support using React 18 at the moment? `useSyncExternalStore` is a React v18 construct, so yes. Though we use the shim (from the React team) to also...

> I ran `pnpm changeset`, but no idea if I did so correctly. Looks great, thanks! Just helps us keep track of changes and what needs to be released. >...

As mentioned, this is in all likelihood due to Vite not applying aliases for SSR builds, instead, keeping the modules external. Adding the alias package (`@preact/compat`) as suggested would fix...

Going to close this on out due to age & lack of movement. Thanks for the proposal though!

Closing this out as we don't recommend CLI anymore

Going to close this out, the Node aliases aren't guaranteed to help due to relying upon module resolution which can differ based on install order. Type aliases are much more...