Comments (6)
I wouldn't worry to much if you could only see the comments. If you have also duplicate markup, that would help. Otherwise, the root cause can be in 1000 places that determine rendering
from react.
If you have also duplicate markup, that would help.
Hi @ppaul . Could you elaborate what is needed? I'll try to provide it.
from react.
I think I misunderstood. So, seeing those twice does that mean the component rendered twice? I suggest rewriting the jsx for debugging purposes and console log on each case. I see you use provider (and probably context). Do you know, react warns that context might lead to unnecessary renderings and people also complain about:
"What is wrong with using context in React?
React Context is often used to avoid prop drilling, however it's known that there's a performance issue. When a context value is changed, all components that use useContext will re-render." (stackoverflow). Try to see what caused the render.
from react.
I'm not sure if it's rendering twice. To be honest, I don't know how to phrase this problem. What's happening is that both true
and false
clauses are being returned at the same time.
I'm having a hard time reproducing it now, but I'll test different scenarios to try gathering more evidence .
from react.
<!--$-->
is the marker for Suspense in Server side rendering.
Maybe there are some issues in the hydration process, but I'm not sure what is going on unless I see the code that repros.
from react.
<!--$-->
is the marker for Suspense in Server side rendering. Maybe there are some issues in the hydration process, but I'm not sure what is going on unless I see the code that repros.
Hi, sorry for the late reply.
This code is built and run on a cloud framework, and we have no access of it's internal processes. Is there anything that I could provide you that would help?
from react.
Related Issues (20)
- Bug: New Suspense boundaries not shown until existing Suspense boundaries have resolved during transition HOT 1
- Bug: You prioritized Nextjs. I have two questions... HOT 3
- Bug: useReducer triggers reducer one more time in React 18 Responsive Mode HOT 12
- Bug: setState does not work, in the custom hook in the Safari browser HOT 1
- Feature Request: Support the `defaultSelected` Property for Rendered `<option>` Elements HOT 7
- Bug: useSyncExternalStore does not schedule update after mutation HOT 8
- TrustedTypes broken when using react HOT 3
- Bug: When building by UMD, react bundle does not includes Scheduler HOT 4
- Doc's Demo that includes const theme = use(ThemeContext) is broken HOT 4
- Bug: Difference of state behaviour between function components and class components HOT 6
- Bug: After kills the app, the cleanup function in useEffect does not execute? HOT 4
- Please, please the development of React Class Components HOT 1
- Bug: Components rendered in React.Suspense can't have their size reliably measured HOT 2
- Bug: One unnecessary re-rendering occurs when entering the same value in useState. HOT 2
- Bug: Unable to parse line in .flowconfig file HOT 1
- Bug: Conflicting useTransition hook in reactjs HOT 1
- Support Palestinian like you did for Ukraine HOT 8
- Termux issue HOT 2
- Bug: validateDOMNesting(...): <tr> cannot appear as a child of <table>. - but it seems to be not correct according to the specification HOT 6
- Bug: `onMouseLeave` events don't seem to behave correctly HOT 3
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.