react
react copied to clipboard
The library for web and native user interfaces.
Bug: web animation cancel() followed by animate() behave oddly when requestAnimationFrame's involved
See repro: [tinyurl.com/4u85ehnh](https://t.co/3eMtHJfEQ5) Video of the glitch: https://x.com/_chenglou/status/1860978002643063054 Tldr on button click I cancel the existing animation and in `useLayoutEffect` I start a new one. The animation goes from translate...
## Summary `useActionState` currently requires accepting an additional state argument as the _first_ parameter of a server action, like so (adapted from [Next.js documentation](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations#server-side-form-validation)): ```diff // in app/actions.ts -export async...
### Website or app https://berrotools.vercel.app/signin ### Repro steps - Access the website https://berrotools.vercel.app/signin, you'll see a sign in form. - Open the DevTools, go to the Profiler tab and start...
### What kind of issue is this? - [X] React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization) - [ ] babel-plugin-react-compiler (build issue...
Seems to not work. May have to wait for https://github.com/facebook/react/pull/31587 ## Summary Closes https://github.com/facebook/react/issues/31578 ## How did you test this change? Lint against optimization. It's more noisy than it needs...
## Summary When I declared a component as an async function and used React.use() to retrieve the parameter of a dynamic route within it, I received following error: ⨯ Internal...
Not allowing dependency lists to change size limits the usefulness of `useMemo` in this particular use case but I imagine there are other similar use cases. To be clear I...
### What kind of issue is this? - [ ] React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization) - [X] babel-plugin-react-compiler (build issue...
### What kind of issue is this? - [X] React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization) - [ ] babel-plugin-react-compiler (build issue...
## Summary I am cross-posting an issue I made with Preact and Voby https://github.com/preactjs/preact/issues/4555 https://github.com/vobyjs/voby/issues/45