Go back

Adopting the App Router

In Tianguiza, we have been using the Next.js App Router for 8 months, and it has been a great experience. In October 2023, we started developing Tianguiza, an app for street markets in Mexico. With a team of three developers, we had to decide on a tech stack. I chose Next.js and the app router because I liked where it was headed. In retrospect, now that the app is released, I am happy with that decision.

Tianguiza promotional image

From the start of the project, we decided to adopt the new app router model, especially server actions and server components. Since I was the only one on the team with some (albeit very little) experience with the new model, it was my responsibility to make it as easy as possible for my team.

The New Model Change

Since we (and almost everyone at the time) only had experience with React before server actions and server components, the most difficult part was the server/client boundary separation. We frequently encountered these types of problems:

These issues caused a slow start as we adapted to the new paradigm, but after some months of development, they stopped being a problem as we learned how to use it.

Some Recommendations

Server Actions

Server Components

Caching

Conclusion

Our journey with the @nextjs app router over the past 8 months has been both challenging and rewarding. Developing Tianguiza required us to navigate new paradigms in web development, especially with server actions and server components. Despite the initial learning curve and the difficulties our persistence paid off. You can check out the App at tianguiza.com or download it on the Play Store.

Some References