Skip to content

Releases: guoyunhe/react-fast-fetch

2.0.0

14 Jul 14:48

Choose a tag to compare

  • feat!(DataStatus): removed DataStatus enum
  • feat!(Fetch): removed Fetch component
  • feat!(FetchProvider): renamed FetchConfigProvider component to FetchProvider
  • feat!(Store): removed has function for better performance
  • feat!(useFetch): removed reloading return, you should use loading return instead
  • feat!(useFetch): removed dataStatus return, you should use loading return instead
  • feat(CacheStore): new store implemented with Cache API
  • fix(useFetch): changed initial loading to true

1.14.0

01 Jun 01:01

Choose a tag to compare

  • Changed to reset data when disabled is true and preserve is false

1.13.0

01 Jun 01:03

Choose a tag to compare

  • Added preserve option to useFetch() hook

1.12.0

01 Jun 01:03

Choose a tag to compare

  • Reference to reload and remove will not change anymore

1.11.0

01 Jun 01:03

Choose a tag to compare

  • Purge invalid data when URL has changed

1.10.0

01 Jun 01:04

Choose a tag to compare

  • Added initData option to IndexedDBStore

1.9.0

20 May 07:12

Choose a tag to compare

  • Added dependencies option to reload data even if URL doesn't change

1.8.0

25 Apr 02:35

Choose a tag to compare

  • Added "sideEffects": false to package.json

1.7.0

19 Apr 03:08

Choose a tag to compare

  • Updated to idb 8

1.6.0

31 Mar 09:58

Choose a tag to compare

  • Added params options, 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)