Giter Club home page Giter Club logo

Comments (6)

rhernand3z avatar rhernand3z commented on June 7, 2024 2

@bluebill1049 it is good to go! thanks @revskill10 ⚔️

from react-simple-img.

bluebill1049 avatar bluebill1049 commented on June 7, 2024 1

thanks @rhernand3z for reporting the issue ❤️ and @revskill10 for the fix 🙏.

i am re-open this issue, until you have tested and working.

[email protected]

from react-simple-img.

revskill10 avatar revskill10 commented on June 7, 2024 1

@bluebill1049 This is, to me a temporary fix.
True fix will be like this:
The component will have isServer attribute default to false.
So on running, the isServer is get from a global context. On server, it will be true, on client when hydrating, it'll set to be false.
Or, on building, we could set that isServer at build time.
Because webpack could build two targets: node and web. With each target, user just inject a variable to isServer and each bundle will be set to correct mode.
How do you think ?

from react-simple-img.

bluebill1049 avatar bluebill1049 commented on June 7, 2024 1

hey @revskill10,

thanks for you suggestion and contribution. i think as long as your fix will resolve the server/client mis-match, then we are good. keep it simple and beautiful 👍

cheers
bill

from react-simple-img.

rhernand3z avatar rhernand3z commented on June 7, 2024

Thanks for the quick turnaround, will be on the lookout once the PR is merged.

from react-simple-img.

bluebill1049 avatar bluebill1049 commented on June 7, 2024

@rhernand3z is the issue got resolved?

from react-simple-img.

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.