Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# react-use-cache

React use cache is an local cache manager to cache response data in memory. It will automatically return previous cached one when requesting the same data from serve to:
React use cache is an local cache manager to cache response data in memory. It will automatically return previous cached one when requesting the same data from server to:

- improve performance
- avoid multiple same requests to server to reduce server pressure
Expand All @@ -23,7 +23,7 @@ $ yarn add react-use-cache

### useCache

React hook for cache promises fulfilled value. Use with `fetch` or `axiso` together to avoid multiple same request to server. Here is an example to cache blog detail object.
React hook for cache promises fulfilled value. Use with `fetch` or `axios` together to avoid multiple same request to server. Here is an example to cache blog detail object.

Once a new comment is created, we are able to use `updateCache` to update the cached object.

Expand Down