menu

Next.js

A place to chat about Next.js and answer questions. For all other ZEIT products, check this out.

Channels
Team
Posts
Members
Info

Using random properties without triggering "did not match on server/client"…

I do see one other post about this, but it was resolved by essentially not using random properties. Anyway, my use case is that I'd like to randomly generate the id property of form inputs, to prevent them from potentially conflicting with other inputs with the same id. This…

thumbsup
0
message-simple
0

Weird behaviour/crash of CSS using nextjs + styled jsx

So in my game that I'm building (https://worldseed.eu) there is a random CSS-crash happening after 1-2 hours of playing. I wouldn't be able to reproduce it, since there is no specific thing that causes it to happen (that I'm aware of). When it happens there are no errors and the…

thumbsup
0
message-simple
0

i am trying to implement http2 in nextjs project

I am using https://github.com/zeit/next.js/tree/canary/examples/with-http2 for reference but after running npm run dev it's showing me . …

thumbsup
0
message-simple
0

Why should I use Next over Gatsby?

I've been building an application in Next.js and I'm starting to wonder what Next.js provides that Gatsby doesn't apart from SSR and no build times when data changes? I'm building an eCommerce website and apart from Gatsby's build times I don't see how I'm benefiting from…

thumbsup
0
message-simple
3

Problem app structure

Hi! question please!, my folder structure : with this structure it's work until I want to use "next-redux-wrapper", I got a error in index.js type : "Could not find "store" in the context..." …

thumbsup
0
message-simple
1

Wrap code that cant be executed on the server?

Should you wrap everything that cant be executed on the server (like window.localstorage) in a if (typeof window !== "undefined")?

thumbsup
0
message-simple
0

isomorphic-querystring

for those of you who need querystring on both client and server, this package either uses node's querystring module, or uses 2 small helper functions in the browser that match the node API. https://github.com/lifeiscontent/isomorphic-querystring

thumbsup
0
message-simple
0

Error Page conflicts with dynamic routing

So i have a few dynamic Routes like blog/[postname].tsx and i am trying to implement my custom error page now. On that error page i do a few server side queries to my cms api to get dynamic content. The examples for error handling for the case that a blog post is not existent i…

thumbsup
0
message-simple
3

Unstyled page when redirect

Hey guys, I'm facing a pretty strange error, sometimes when I redirect with a <Link> or a push I get that my page dont show any css. I'm using material UI with my layout. Have anyone faced this issue? How do you solve it?

thumbsup
0
message-simple
3