-
-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix invalid data check in query/mutation fn (#1975)
* check specifically for undefined in data for throwing errors * add changeset * add biome as default formatter for typescript react * improve data checks in query/mutation fns * add tests * test fix * add hugeletters to contributs list of react-query package * dont throw in mutations on undefined * fix changeset * fix mutation tests --------- Co-authored-by: Evgenii Perminov <[email protected]>
- Loading branch information
1 parent
d29e53f
commit 621792f
Showing
5 changed files
with
105 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"openapi-react-query": patch | ||
--- | ||
|
||
- Fixed empty value check in queryFn: only throws error for undefined, other falsy values are allowed | ||
- Fixed empty value check in mutationFn: allow falsy values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters