const trpcUtils = trpc.useUtils(); // This will return cached data from the server.
const { data: guilds, error } = trpc.private.guilds.useQuery();
const handleRefresh = () => {
// The implementation to bypass cached data => { skipCache: true }
}
return <button onClick={handleRefresh}>Refresh</button>
const trpcUtils = trpc.useUtils(); // This will return cached data from the server.
const { data: guilds, error } = trpc.private.guilds.useQuery();
const handleRefresh = () => {
// The implementation to bypass cached data => { skipCache: true }
}
return <button onClick={handleRefresh}>Refresh</button>