GithubHelp home page GithubHelp logo

Comments (6)

mxstbr avatar mxstbr commented on July 19, 2024

It has to be due to the fact how Next.js renders, does it render all the pages at once? That would explain why we inject all of the CSS, since that means all components are rendered. /cc @arunoda @rauchg

from styled-components-website.

kitten avatar kitten commented on July 19, 2024

@mxstbr it is because we're not actually wrapping around the app. There's an open issue for this on next.js :)

vercel/next.js#1751

from styled-components-website.

kitten avatar kitten commented on July 19, 2024

This is resolved for now as I've added a vendored version of next with the fix mentioned above

Edit: I created an issue to remind myself to get rid of the vendor tarball: #94

from styled-components-website.

threepointone avatar threepointone commented on July 19, 2024

Looks good! I notice styled-components.com has a lot fewer styles now, so that's great. it still appears to be injecting every rule twice though?

from styled-components-website.

kitten avatar kitten commented on July 19, 2024

@threepointone Wow! It indeed is. Wtf?

Edit: In this case I shall reopen this issue

from styled-components-website.

mxstbr avatar mxstbr commented on July 19, 2024

This is fixed, right?

from styled-components-website.

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.