Augustine Kim

Results 141 comments of Augustine Kim

Discussed some more options with @michaelwarren1106 about this. Plugin option to suppress hydration for custom elements, and making it take a list of custom elements or a pattern match (like...

[`useSyncExternalStore`](https://react.dev/reference/react/useSyncExternalStore) apparently has a code path that'll run on the server *and* on hydration, which allows us to have some bespoke logic there. Source https://twitter.com/tkdodo/status/1741068994981826947 and credit to @ceiia for...

Have you found a solution for this? Assuming you have a ref to the element within the effect, perhaps you can `await element.updateComplete` before doing things on the element?

@nbamfordcirium SSR support with scoped custom element registry has not been tested and we only supply a minimal amount of DOM shims in the server environment. `@open-wc/scoped-elements` won't work as...

There's a couple thing contributing to this "event masking" effect. The `@lit-labs/react` wrapper works by checking if a given prop exists on the the component class prototype and setting it...

React does do the `addEventlistener('click', method)` thing but only for select events, and only for built-in browser components (https://react.dev/reference/react-dom/components/common#common-props). React also treats custom elements as built-in so if you just...

I am able to reproduce this. Unfortunately it seems webpack has no consistency in what order it bundles things. In MacOS, the `react` package shows up first in the bundle...

Found another issue in webpack specifically with ordering being off by platform https://github.com/webpack/webpack/issues/16289 There does seem to be an open PR to fix but hasn't been merged yet. Edit: the...

Yes, we should keep this issue open! It's still very much an issue affecting our users that we would like to address.

Hmm.. what about things like `` elements where a user might've already started typing into it before hydration. If there's a value binding on it hydration could blow that away.