This fixes a whole class of bugs where, after making a data mutation on the server side, you don't see data update on the client. It turns out that if you refresh the router, it needs to happen after any navigation, or else the router refresh gets cancelled.
This also uses a feature of tRPC I previously didn't know about that makes refreshing data on the client side cleaner.
This fixes a whole class of bugs where, after making a data mutation on the server side, you don't see data update on the client. It turns out that if you refresh the router, it needs to happen after any navigation, or else the router refresh gets cancelled.
This also uses a feature of tRPC I previously didn't know about that makes refreshing data on the client side cleaner.