Skip to content

1.6.0

Choose a tag to compare

@guoyunhe guoyunhe released this 31 Mar 09:58
· 64 commits to main since this release
  • 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)