UNPKG

react-use-resource

Version:

Convert a promise returning function into a suspense compatible resource.

47 lines (21 loc) 1.39 kB
# Changelog All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. ## 0.5.0 (2020-12-27) ### Features * add useLazyResource hook ([f1ef7f0](https://github.com/feerzlay/react-use-resource/commit/f1ef7f064c23a6f814bf4e92f4e0c9da3df7946a)) ### 0.4.0 (2020-12-20) ### Features * start data fetching asap instead of waiting for a first read call ([1c8e3a8](https://github.com/feerzlay/react-use-resource/commit/1c8e3a89251f5289f610d48552fd344903739abf)) ### 0.3.1 (2020-12-20) ### Features * update dependencies ([1a3b900](https://github.com/feerzlay/react-use-resource/commit/1a3b9008eef6bd48b98a1918bce4d12cde50e8de)) * update readme ([1a3b900](https://github.com/feerzlay/react-use-resource/commit/1a3b9008eef6bd48b98a1918bce4d12cde50e8de)) ### 0.3.0 (2020-10-09) ### Features * add ssr support ([e307ec8](https://github.com/feerzlay/react-use-resource/commit/e307ec8eb9919a3ca888cb3d8e766484d9b91766)) ## 0.2.0 (2020-09-24) ### Features * add promise cancellation ([9205dd2](https://github.com/feerzlay/react-use-resource/commit/9205dd2c69a3678874214ee8a9c4671a9868bbe7)) ## 0.1.0 (2020-09-23) ### Features * implement basic resources ([56bf072](https://github.com/feerzlay/react-use-resource/commit/56bf07299f8823157629f2450ab1de357ba7122b))