v1.6.2
This release fixes several small issues with RTK Query, as well as a regression in the createAsyncThunk types and an issue with sourcemap URLs.
Changelog
RTK Query Fixes
The isLoading flag should only ever be true on the first run of a hook, but would sometimes briefly flip to true on later calls. That should now stay the correct value.
fetchBaseQuery should now work properly when used in conjunction with node-fetch.
The BaseQueryApi object now correctly includes the extra argument that was provided when configuring the thunk middleware, if any.
Other Fixes
Sourcemap URLs should now be correct, especially for the CommonJS build artifacts.
createAsyncThunk's types have been updated to correctly infer return values when working with enums.
Lots of assorted docs tweaks and updates!
What's Changed
- Add extra to BaseQueryApi by @ricksanchez in #1378
- fix: point sourceMappingURL to correct sourcemaps in build artifacts by @jawadsh123 in #1459
- fix:
createAsyncThunkunion return values fall back to allowing only single member by @phryneas in #1449 - fix
fetchBaseQueryfor usage withnode-fetchby @phryneas in #1473 - fix "isLoading briefly flips back to
true" #1519 by @phryneas in #1520
Full Changelog: v1.6.1...v1.6.2