Comments (4)
https://codesandbox.io/p/sandbox/competent-chatelet-8qvvnm?file=%2Fapp%2Fpage.tsx%3A3%2C43
I have an interesting observation (I'm not sure if it's the same bug but it seems related) with useFormStatus and server actions:
- If a component only has the useFormStatus hook, it works correctly
- If the component also has an useEffect hook, it does not work. The pending status changes to false almost inmediately
from react.
I'm facing same issues:
- After triggering the action and pending goes to true, If the component is re-rendered after updating the state the pending status switch to false.
- Pending stuck as true for long taking actions
This is stopping me to use this on production. Please we need some fix asap. Thanks!
from react.
Thanks for the bug report, I've reproduced the bug in a simpler codesandbox. It looks like right around 5s for a client action is the point when the pending
property gets stuck and isn't updated: https://codesandbox.io/s/useformstatus-forked-vsdskv?file=/App.js
@acdlite can you take a look?
from react.
I updated the CodeSandbox to highlight that issue occurs with a client action that takes 5s but not a action that takes 4s. Its on the experimental channel. In my experimentation it occurs somewhere between 4900ms and 5000ms: https://codesandbox.io/s/useformstatus-forked-vsdskv?file=/App.js
from react.
Related Issues (20)
- Bug: Use useId function to generate dom id,it can't use document.querySelector function. HOT 6
- Bug: Despite having implemented optimizations such as shouldComponentUpdate or PureComponent HOT 7
- Bug: unable to compile standalone binary in Deno with server rendering, while using Typescript.
- RSS feed for the blog HOT 3
- Bug: Using useSyncExternalStore with SSR and no getServerSnapshot results in error HOT 6
- Nested <form> elements error with "A React form was unexpectedly submitted." HOT 11
- I am very much looking forward to React having an ESM bundle version similar to Vue, specifically designed for the tree Shaking feature in Rollup, which is convenient to package into NginxScript's njs for SSR use HOT 1
- [DevTools Bug]: Error: Should have a queue. This is likely a bug in React. Please file an issue. HOT 5
- Bug: state update from a rAF in useLayoutEffect not batched when using `createRoot` HOT 7
- New hook: useMemoWithPrev HOT 1
- Bug: Component's redux state value resets to null even though no action to do so initiated HOT 1
- Bug: unstable_runWithPriority continious loop
- [DevTools Bug]: Memory leak when not using the extension HOT 3
- about the react performance (how to improve it)
- Proposal: Include Error Boundary Lifecycle Hooks in React's Core API
- Not detecting React App HOT 2
- Bug : Application crashes in Navigating reference pages HOT 2
- [DevTools Bug] Cannot remove node "1455" because no matching node was found in the Store. HOT 1
- Bug: onBlur is not firing in IOS Chrome when trigger done button HOT 3
- Bug:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react.