from Hacker News

Remix vs. Next.js

by pspeter3 on 1/18/22, 6:55 PM with 16 comments

  • by littlecranky67 on 1/19/22, 10:48 AM

    Haven't heard of Remix, will give it a try. One thing that bugs me with Next.js is the missing data mutations part that Remix claims to address. When I setup my next.js project and was fetching data via getServerSideProps I was impressed. Until I realised there is zero support for mutating data. As soon as I need a single POST/PUT request, next.js support ends and you are back to writing your own fetch() code. It somewhat felt as if developers ended their day there, as you would definitely expect something that allows you to send data from the client to the server.
  • by cockatiel_day on 1/19/22, 3:16 PM

    Remix's approach to fetching is unique and compelling for Rest APIs.

    However, if you're working with a GraphQL API, you can eliminate all these much-mentioned fetch waterfall issues by using Relay as a client... Relay inspects the data needs of all your page's components and compiles them to a single page query. Relay also has a number of nice developer interfaces for common/annoying problems like pagination that I don't think are possible w/ Remix's approach.

    This article is informative, but I think it misleadingly implies that you can't avoid waterfall fetches in Next (or that it only might be possible someday w/ React Server Components)... you can.

  • by austinpena on 1/18/22, 10:38 PM

    I’ve been pretty deep into next js for a while. I’m excited to give Remix a try.

    Very big fan of fly.io as well, they’re smart folks and I run every service I can on them.

  • by nsonha on 1/19/22, 12:44 AM

    The "pros" for nextjs seem believable, a non-bias piece /s
  • by jmtucu on 1/19/22, 10:52 AM

    I started to use Remix and I love it, the nested routes / layouts is the most powerful feature for me. Also, the API is easier and cleaner than Next and the hooks to consume the data is a nice approach as well.
  • by pictur on 1/19/22, 4:40 AM

    remix talks about too much simplification. Too much simplification scares me.
  • by jokethrowaway on 1/19/22, 7:11 AM

    Glad to see someone not focused on frontend.

    Frontends are incredibly bloated already and next.js embedding react in any page is a killer for static websites.