Skip to content
#

Vercel

vercel logo

Vercel is the optimal workflow for frontend teams.

All-in-one: Static and Jamstack deployment, Serverless Functions, and Global CDN.

Here are 3,835 public repositories matching this topic...

next.js
swr
Daiz
Daiz commented Nov 27, 2019

The documentation for mutate talks about local mutation for faster feedback, but the documented way to use it only mutates after a promise has resolved - in other words, not immediately.

As a result, I've found myself writing code in this kind of pattern:

mutate(path, { ...data, patch }, false); // mutate immediately, don't revalidate
await patchData(patch); // await the 

A starter project for next js with authentication - Contains React 17 + Typescript + Tailwind CSS 2 + React Query 3 + GitHub Auth + LinkedIn Auth + Password-less Auth + Fauna DB + ESLint + Prettier + Husky

  • Updated Sep 1, 2021
  • JavaScript
Organization
vercel
Website
vercel.com