question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

docs: Next Minimal Starter v10 Upgrade

See original GitHub issue

Area of Improvement

I would recommend matching the next-minimal-starter sample project with the Usage with Next.js docs page. Here are a couple of changes that I would suggest:

  • Usage with Next.js suggests router merging, so we should provide the example with such and adopt the file structure recommended by Recommended file structure.
  • Introduce a second sub-router to fetch posts from an open API such as jsonplaceholder to illustrate an additional query and batching.
  • Index page should list Discord server and GitHub discussions as other examples.
  • Update the link from /example-apps, click here to visit the href.

Link to related docs

https://trpc.io/docs/v10/nextjs

Additional information

No response

👨‍👧‍👦 Contributing

  • 🙋‍♂️ Yes, I’d be down to file a PR implementing the suggested changes!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
juliusmarmingecommented, Sep 28, 2022

I remember the initial point of the minimal was that someone felt overwhelmed by all the files so separating it I don’t think is a good idea. This is, as the name suggests, the minimal setup required to get tRPC+Next working together.

Having it as 2 files, 1 server and 1 client, also helps for the QuickStart stackblitz embed on https://trpc.io#try-it-out.

Index page should list Discord server and GitHub discussions as other `examples.

This we could absolutely do. Could make it a bit prettier too I guess as long as it isn’t too distracting 🤔

1reaction
bautistaaacommented, Sep 28, 2022

I think its fine -as is- since its in fact a “minimal” example.

We have next-prisma-starter that addresses these as well.

Index page should list Discord server and GitHub discussions as other `examples.

I think this is a good idea

Introduce a second sub-router to fetch posts from an open API such as jsonplaceholder to illustrate an additional query and batching.

This is good feedback but i wouldnt put it in minimal(suggestions?)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blog - Next.js 12
Underlying webpack improvements: We've made numerous improvements to webpack, including optimizing Fast Refresh and making on-demand entries ...
Read more >
Example Apps
Example Apps · Next.js starter with Prisma, E2E testing, and ESLint (Recommended)​ · create-t3-turbo - T3 Stack with Expo and Turborepo​ · Next....
Read more >
Upgrade Guide
How to upgrade Quasar from older versions to the latest one.
Read more >
Requirements for upgrading v10 versions on VMware
Upgrade from, Upgrade to the latest iFix for v10.0.1.2. v2018-fp15, Upgrading from v2018 to v10.0.1.2 on VMware. v10.0.0.0; v10.0.0.0-ifix2 ...
Read more >
Upgrade Guide - Laravel - The PHP Framework For Web ...
Horizon v5.0 · Passport v10.0 · Socialite v5.0 · Telescope v4.0. In addition, the Laravel installer has been updated to support ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found