Skip to content

Commit

Permalink
docs: add warning of potential double-calling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
javascripter committed Feb 7, 2023
1 parent 68a7a09 commit c2dcde2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ V2 is now implemented as a swr middleware to support `refreshInterval` option ([

The migration to the new middleware API is pretty straightforward and is recommended. We still maintain backward-compatible APIs such as `useSWRNative` and `useSWRNativeRevalidate` for ease of migration, but those previous APIs do not support `refreshInterval` option and are not recommended.

**If you plan to combine useSWRNative / useSWRNativeRevalidate and the new middleware instead of fully migrating to the new middleware API, you need to be aware of the potential double-calling issue. Please refer to [this comment](https://github.com/nandorojo/swr-react-native/pull/25#issuecomment-1420728115) for more information.**

### Usage with SWR v1

```sh
Expand Down

0 comments on commit c2dcde2

Please sign in to comment.