Releases: ivklgn/remote-data
Releases · ivklgn/remote-data
2.1.2
2.1.1
2.1.0
https://www.npmjs.com/package/@young-aviator-club/remote-data/v/2.1.0
- better infer types in
guards
if (RD.isSuccess(rd)) {
rd; // infer RemoteDataSuccess
}
- call loading, when reloading not specified in
fold
rd = RD.reloading();
RD.fold(rd, {
notAsked: () => 'no data',
loading: () => 'loading..', // call loading (!)
success: (n: number) => String(10 + n),
})