You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
+
<!-- omit in toc -->
1
2
# react-cached-fetch
2
3
3
4
A simple react hook for data fetching with cache. It serves the cached version while waiting for the data to be fetched and then updates the cache with the fetched result. It is great for grids, lists or any other page thats loads data.
4
5
<br/><br/>
5
6
7
+
<!-- omit in toc -->
6
8
# Features:<br/>
7
9
✅ 0 dependencies<br/><br/>
8
10
✅ Unopinionated<br/>
@@ -20,6 +22,18 @@ You can silently send a new GET request to your API and have your UI updated aut
20
22
✅ TypeScript ready<br/>
21
23
This library if fully written in TypeScript and supports generic types. You can use it both with plain JavaScript or with TypeScript
22
24
<br/><br/>
25
+
26
+
-[Installation](#installation)
27
+
-[Usage](#usage)
28
+
-[API](#api)
29
+
-[useCachedFetch](#usecachedfetch)
30
+
-[Options](#options)
31
+
-[Global Options](#global-options)
32
+
-[Usage with other HTTP clients](#usage-with-other-http-clients)
0 commit comments