it makes sense to me that useEffectEvent solves only one thing and not two
but still - could you please show an example of lost reactivity?
@jantimon.bsky.social
living in Switzerland ๐จ๐ญ mainly working on typescript, css and compiler related frontend topics https://github.com/jantimon
it makes sense to me that useEffectEvent solves only one thing and not two
but still - could you please show an example of lost reactivity?
you were right!
it took me some time to test all cases manually and migrated them to playwright - but it behaves exactly as you described
github.com/jantimon/rea...
I also ran the playwright tests with react-compiler and the results were quite impressive
I believe you are right
Do you know why act might cause problems when testing useTransition?
Maybe I should switch to playwright tests for this repo
You can clearly see that the modal backdrop is cut off
16.09.2025 13:40 โ ๐ 5 ๐ 0 ๐ฌ 1 ๐ 0Here is Apple.โ com struggling with these viewport bugs:
16.09.2025 13:40 โ ๐ 9 ๐ 0 ๐ฌ 1 ๐ 0Screenshot of Safari 26 in "tabs at the top" mode showing a webpage that is set to `viewport-fit=cover` and the dynamic toolbars scrolled away (minimized). The viewport is too short and the safe area insets are all wrong. Device: iPhone 13 Pro.
Screenshot of Safari 26 in "tabs at the top" mode showing a webpage with the dynamic toolbars scrolled away (minimized). The viewport (blue box) is way too short and does not toch the very top of the screen. Device: iPhone 13 Pro.
Viewport behavior in Safari 26 is utterly broken. ๐๐ญ
Time to get Viewports into #Interop2026 because viewports on iOS have gotten only worse since I did the initial research in, *checks notes*, 2022 โ github.com/web-platform...
useTransition (without memo -> no fallback)
github.com/jantimon/rea...
useDeferredValue (without memo -> forces fallback)
github.com/jantimon/rea...
here `isPending` is NOT RENDERED and does NOT force the suspense boundary into its fallback
but in the second example the state is NOT RENDERED and DOES force suspense boundary into its fallback
both the isPending and the count state changed - but only one forces suspense boundary fallbacks
๐ตโ๐ซ
why is that memo not needed for isPending from useTransition()?
16.09.2025 07:22 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0unfortunately the react compiler must be the first compile step..
that limits using compile time optimizations e.g. for css-in-js, i18n, โฆ
and the compiler is written in babel which makes it quite slow for large codebases
it's truly amazing that your memo trick works but who is supposed to understand this code ๐
15.09.2025 19:46 โ ๐ 2 ๐ 0 ๐ฌ 1 ๐ 0here is a useDeferredValue example and unit test
it shows that useDeferredValue has no effect at all and causes the Suspense barrier to render its fallback
for me this does not match the documentation which says "useDeferredValue is a React Hook that lets you defer updating a part of the UI"
the render function is called many many times - although its inside `memo` and it is only once in the tree "react": "19.1.1", "react-dom": "19.1.1"
Here is something else what confuses me and where I also don't know what I don't know
This is a component inside memo and I don't understand why its render function is called 30+ times in this example
stackblitz.com/edit/vitejs-...
Are there any docs which explain this behaviour?
for the prompt "Does SSR with React lazy render the suspense fallback or the content of the lazy component?" Claude gives a very confusing answer
for the prompt "Does SSR with React lazy render the suspense fallback or the content of the lazy component?" Chat GPT gives a kind of okayish answer
Now that I invested more time I feel it is fine
My problem was that I didn't know what I didn't know and where to start when Suspense caused CLS
For example the docs say "non-blocking Transition update" - does that mean there are blocking Transition updates too?
Maybe I was just confused by AI ๐
Many thanks Ricky for the hints - you were absolutely right..
After removing the `isPending` part the useTransition test is no longer breaking the Suspense Fallback!
I updated the text and adjusted the tests
@danabra.mov did I miss anything in github.com/jantimon/rea... ?
08.09.2025 20:00 โ ๐ 15 ๐ 4 ๐ฌ 4 ๐ 0that could potentially speed up projects a lot - especially if those projects use babel on node_modules
26.08.2025 14:20 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0We would be curios to track down cross file react context usages - but it seems to be quite hard to do because of custom hooks, lazy loaded components, lazy loaded hooks, styled components, โฆ
23.08.2025 06:35 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0I recently wrote something like react-scanner from scratch in rust using swc as parser (claude code helped a lot)
it scanned 12.000 tsx files in under 1s and was a lot of fun to build
i can share the code if it helps
I wouldnโt bet on 2025, but my hopes are high for 2026.
Firefox has had an experimental implementation for years. Safari also has one now. And weโre implementing in Edge/Chrome.
Itโs a matter of agreeing on the spec now. Once done, it wonโt take long for the feature to ship.
That would be really amazing
Currently the only existing CSS solution is CSS columns and that one comes with really big drawbacks like wrong tab order and limited control over the order in responsive designs
grid-template-rows: masonry
would solve both problems
can i use screenshot of https://caniuse.com/?search=masonry
what does soon mean?
we would love to use it but it feels like an abandoned feature
do you think it might become stable by 2025 or 2026?
We're thrilled to announce the first stable release of Oxlint - version 1.0!
Our Rust-powered JavaScript/TypeScript linter delivers 50~100x faster performance than ESLint with 500+ rules and zero configuration required.
Time to give it a try!
voidzero.dev/posts/announ...
There is a great article about SEO and performance
It has a dedicated section called:
"Ignore Lighthouse and PageSpeed Insights Scores"
csswizardry.com/2023/07/core...
Vite 7 (to be released in ~2 weeks) will be distributed as ESM-only, unblocked by require(esm). We decided to bump node versions to 20.19+, 22.12+ to have it unflagged. Here is @sapphi.red's PR removing the bits of CJS we were still shipping.
28.05.2025 12:14 โ ๐ 34 ๐ 3 ๐ฌ 1 ๐ 0Next-Yak playground showing an editor on the left hand side, the rendered output on the right side on the upper two thirds and the transpiled CSS output on the lower third. You can see that next-yak transpiles styled-components looking code to static CSS
We found a way to run our custom SWC plugin on the client in WASM ๐
If you want to see how next-yak transpiles your input to static CSS have a look here: yak.js.org/playground
I ported React Router RSC Movies demo to Vite. github.com/hi-ogawa/rsc... RSC bundler feature is encapsulated in the package `@hiogawa/vite-rsc` and React Router RSC API integration is found in `./react-router-vite`. The latter part is mostly a copy of `parcel-plugin-react-router`.
18.05.2025 05:19 โ ๐ 15 ๐ 3 ๐ฌ 1 ๐ 0example of the css-in-js approach tsx in - js and css out
maybe I can give you an idea of what I would have in mind - it's rather a css-in-js postprocessor that extracts css from your tsx
so you can keep writing ordinary css
it only imports the css - so you could still configure your bundler to split or combine the css as you wish
simple example
"you can implement new features without needing library support"
I never ran into such an issue - can you give an example where you couldn't use a css feature because of missing library support?