All Versions
32
Latest Version
Avg Release Cycle
12 days
Latest Release
1910 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v1.7.4 Changes
March 26, 2020Fixes
- โก๏ธ #84 - handleReload from useQuery hook fired with old client instance after client update
-
v1.7.3 Changes
March 26, 2020Fixes
- โก๏ธ #84 - queries were fired with old client instance after client update
-
v1.7.1 Changes
March 23, 2020Improvements
- ๐ Allow to easily use axios with all features - example
-
v1.7.0 Changes
February 25, 2020Improvements
- ๐ New way of extending base
Action
in TS - more info here
๐ฅ Breaking changes
- Old way of extending Action type in TS is not working anymore
- ๐ New way of extending base
-
v1.6.4 Changes
February 24, 2020Fix
- TS types of client context
-
v1.6.3
February 24, 2020 -
v1.6.2 Changes
February 24, 2020Features
useBulkMutation
hook #75 - thanks for @josejulio
-
v1.6.1 Changes
February 20, 2020Features
-
v1.6.0 Changes
February 20, 2020Improvements
- ๐ฆ package size reduction (replace tsc with rollup and closure compiler)
๐ allow to define response TS type directly in action definition
type UsersResponse = { data: User[]; meta: any; }export const fetchUsersList: Action<UsersResponse> = { method: 'GET', endpoint: '/users', };
and then you can skip type in component ie.
const { payload } = useQuery(fetchUsersList)
instead of
const { payload } = useQuery\<UsersResponse\>(fetchUsersList)
๐ฅ Breaking changes
- ๐
MutateContext
andQueryContext
have been removed - it's easier to create own context in application First parameter for
Action
type is now response type, to extend baseAction
(ie. to add some new params) you have to create type like that:import { Action as BaseAction } from 'react-fetching-library';export type Action<T = any, K = { skipAuth?: boolean; }> = BaseAction<T, K>;
-
v1.5.15 Changes
February 12, 2020Fixes
- โ remove random background color in documentation
- โ add info about responseType property in
Action
type - โ remove default
Content-Type
for requests with body of typeBlob
,ArrayBuffer
,FormData