GithubHelp home page GithubHelp logo

Comments (3)

kyle-mccarthy avatar kyle-mccarthy commented on July 28, 2024 1

Thanks for sending that over. Unfortunately it looks like the example they provided is wrong. The call renderPage directly from the context, rather than using the enhancer which can cause the flash reported in this issue on the nextjs repo.

I messed around with their material-next example a little bit and was able to get it working with the enhanceApp, here is the gist. However, it looks like V4 uses a new SSR API, so it isn't likely to work when they release V4 in a couple of days.

Since this isn't really related to this repo, and is more of a question about using material-ui with next I am going to close this issue. I encourage you to ask the material-ui devs about an alternative to calling renderPage directly, since other people probably are having the same issue. You may want to attach the nextjs issue (#5629) I referenced above.

from nest-next.

kyle-mccarthy avatar kyle-mccarthy commented on July 28, 2024

Hi can you provide a little more information about how you are handling your styles? I use emotion 10 and haven't encountered this issue. I also don't directly call the renderToHTML method, I call render.

Can you also provide a sample of your _document file as well as checking out this issue from the nextjs repo?

from nest-next.

ithinco avatar ithinco commented on July 28, 2024

Hi, @kyle-mccarthy I'm using material-ui and this _document.tsx setting. https://github.com/mui-org/material-ui/blob/next/examples/nextjs-next-with-typescript/pages/_document.tsx

BTW, Thanks for your work.

from nest-next.

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.