GithubHelp home page GithubHelp logo

Comments (6)

ppaul avatar ppaul commented on May 1, 2024

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.

pedrobernardina avatar pedrobernardina commented on May 1, 2024

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.

ppaul avatar ppaul commented on May 1, 2024

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.

pedrobernardina avatar pedrobernardina commented on May 1, 2024

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.

JSerZANP avatar JSerZANP commented on May 1, 2024

<!--$--> 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.

pedrobernardina avatar pedrobernardina commented on May 1, 2024

<!--$--> 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.