Juho Teperi

Results 298 comments of Juho Teperi

Looks good on a quick glance. I'll merge this when I next have time to work on Reagent. One thing to consider: is it possible there are multiple nsted shadowRoots?...

@oxalorg Do you have suggestions how to test this? Can I create an example without any additional libraries easily, or should I just use some component library to test this?

@oxalorg, Thanks! The example looks good. I will consider if/how I can incorporate this in Reagent test suite, or if I just have to keep it as an example project...

@oxalorg Merged with nested shadow-dom support and the example now: https://github.com/reagent-project/reagent/commit/8ed990c3398349d007d60f38e7db639560b759f3 Note: 2.0.0-alpha2 with flushSync use didn't seem to need the input workaround for these inputs... but the material-ui example...

Adding a setTimeout 0 to the state update ensures the cursor is broken like expected. This is similar to what triggering a re-frame event and using a subscription to get...

See https://github.com/metosin/reagent-dev-tools/commit/0588f3f9e928dd0ca0f2cc2121451ec29670fb25 for one example of checking for React 19. Re-frame-10x uses a different solution, where a difference namespace can be preloaded to choose between React 17 or 18 (and...

I found a note about React 18: > For React 18: Consider using {:preloads [day8.re-frame-10x.preload.react-18]}. This will use [React's new render API](https://react.dev/blog/2022/03/29/react-v18#react-dom-client). Otherwise, expect deprecation warnings from React. This same...