SWR DevTools
A developer tool for SWR to help you debug SWR Cache.
Download
You can download the SWRDevTools extension at the following.
Setup (SWR v1 only)
- [
SWR v1.x
only] Installswr-devtools
and wrap your application with theSWRDevTools
component. Please see the more details in the documentation
Features
Open the Developer Tools of browsers and select the SWR Panel, you can see the following panels.
Cache Panel
The Cache panel shows SWR Cache data on the page.
![A screenshot of cache panel](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fcache-view.3bb86b16.png&w=3840&q=75)
History Panel
The History panel shows logs of fetcher results.
![A screenshot of history panel](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fhistory-view.6a63c54f.png&w=3840&q=75)
Network Panel (Experimental)
The Network panel shows a waterfall chart of fetcher results.
![A screenshot of network panel](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fnetwork-view.3cbeeea6.png&w=3840&q=75)
Online Demo
You can try SWRDevTools on this page!
App
/api/hello...loading(auto increment in 5 seconds)
/api/hello?foo...loading