Consisty / Consisty.github.io

0 stars 0 forks source link

react-native/swr_api_calling/ #2

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

SWR In React-Native Part1 | Consisty

A website and application development company

https://blog.consisty.com/react-native/swr_api_calling/

batjko commented 3 years ago

For usage of SWR in React-Native, there is a bit more work to set it up. See here: https://swr.vercel.app/docs/advanced/react-native

This is because a mobile app doesn't have the same events as a web app, to trigger cache revalidations.

There is another package that tries to bridge that gap and make it easier to use SWR in React Native: https://github.com/nandorojo/swr-react-native