I just started a new project using the app router, previously I was using pages router along with tRPC and react-query and a story like jotai or zustand.
Now I end up with this new app router with server actions and things like that.
Everything is nice for public page and content websites, where invalidating cache is a nice requirement because pages are cached, and that speeds up the website.
But when dealing with a back-office or something behind authentication I get lost. Having to change pages and eventually clear the cache on each request? Not being able to manage things with my store?
What am I supposed to do?
A simple use case I’m getting a headache to realize: https://github.com/emilkowalski/sonner/issues/409
Can anyone give me more insights or feedback on using app router with a fully back-office application? The one you use to play with tRPC,Zustand, such things?
Thanks