Releases: guoyunhe/react-fast-fetch
Releases · guoyunhe/react-fast-fetch
2.0.0
- feat!(DataStatus): removed
DataStatusenum - feat!(Fetch): removed
Fetchcomponent - feat!(FetchProvider): renamed
FetchConfigProvidercomponent toFetchProvider - feat!(Store): removed
hasfunction for better performance - feat!(useFetch): removed
reloadingreturn, you should useloadingreturn instead - feat!(useFetch): removed
dataStatusreturn, you should useloadingreturn instead - feat(CacheStore): new store implemented with Cache API
- fix(useFetch): changed initial
loadingtotrue
1.14.0
1.13.0
1.12.0
1.11.0
1.10.0
1.9.0
1.8.0
1.7.0
1.6.0
- Added
paramsoptions, so you don't have to write search string by hand (you can have many typos!).// before const { data } = useFetch(`/foo/bar?page=${page}&pageSize=${pageSize}`); // now const { data } = useFetch('/foo/bar', { params: { page, pageSize } });
- Normalize url internally to avoid duplicated records in store. For example,
/foo/bar/?b=2&a=1&c=
will be normalized to/foo/bar?a=1&b=2. (Search params are sorted and ending slashes are trimed)