Extending Error SWR
Does anyone know how to extend error type to make something like this example from SWR work?
https://swr.vercel.app/docs/error-handling#status-code-and-error-object
Very lost on how to do this after looking online for awhile. thx!
Error Handling – SWR
SWR is a React Hooks library for data fetching. SWR first returns the data from cache (stale), then sends the fetch request (revalidate), and finally comes with the up-to-date data again.
0 Replies