Max Greenwald
banner
maxgreenwald.me
Max Greenwald
@maxgreenwald.me
Hey, I’m Max! I’m a Senior Software Engineer at Paperless Post based in Portland, Maine.

I’m a full-stack TypeScripter and a Node.js + React enthusiast.

https://maxgreenwald.me
Please do
November 18, 2025 at 5:59 PM
That really went from 0 to ♾️ in four short steps
November 17, 2025 at 1:51 AM
What kind of tinkering…?
November 12, 2025 at 2:39 AM
Don’t replace your API with server functions - you lose input validation, middleware, and the ability for other clients to hit your API. Stick with tRPC!
October 25, 2025 at 8:18 PM
You said you don’t want to hardcode buckets, so you can also use calc() and the vw unit (e.g 50vw) to come up with formulas that apply at different breakpoints
July 3, 2025 at 10:38 AM
Don’t do this, you can do it all in CSS :)
July 3, 2025 at 10:36 AM
If you have specific percentages your element should take up at different breakpoints, you can use media queries to specify exactly what percentage to take up when you arrive at 400px, 500px, etc.

@media (min-width: 400px) {
.my-class {
width: 50%;
}
}

developer.mozilla.org/en-US/docs/L...
Media query fundamentals - Learn web development | MDN
The CSS Media Query gives you a way to apply CSS only when the browser and device environment matches a rule that you specify, for example
developer.mozilla.org
July 3, 2025 at 10:36 AM
This is such an impressive release. Kudos and thank you!!!
April 10, 2025 at 3:45 PM
Cute!!! Love this
April 5, 2025 at 1:46 AM
Totally agreed, this was the magic of the OG getInitialProps API and what made it so great to work with.
December 19, 2024 at 4:29 AM
Yes it's normal. Every DNS record has a different TTL, and some can be as short as 1 minute. Also, DNS clients can choose to not respect the TTL time and refetch it anyways.

Browsers these days are doing their own DNS lookups over DoH instead of relying on the OS DNS tools, so check your settings.
December 14, 2024 at 7:08 PM
Great article! I really appreciate the clear guidance at the end.
December 8, 2024 at 7:20 PM
Oh yikes that's true. They also say on their status page that "some features will remain operational, like installations and search", which clearly was not the case 😬
December 8, 2024 at 7:02 PM
Looks like npm is doing scheduled maintenance so that probably explains it. I saw pnpm fail to install in a Github Action which is pretty disruptive, but I guess better on a Sunday than a weekday.
December 8, 2024 at 6:43 PM
First time follow, React Summit starter pack!
December 3, 2024 at 3:08 PM
Isomorphic SSR
December 2, 2024 at 1:57 PM
@jimmyl.ai What are your thoughts on Next directly supporting this use case of reading headers / cookies in client components on the server?
November 21, 2024 at 10:24 PM
I know Apollo has been working on something similar but they have the same auth in client components problem.
November 21, 2024 at 8:26 PM
The auth problem is blocking for sure - I've been able to work around it by storing state in Node globals but it's hacky. Seems like it needs direct support from the Next team to resolve this.
November 21, 2024 at 8:26 PM