Skip to content

Commit abbf479

Browse files
committed
Update Readme
1 parent 9aa54ba commit abbf479

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ React Query contains a set of hooks that attempt to address these issues. Ouf of
3636
- Supports retries and even exponential/custom back-off delays
3737
- Provides a declarative API for invalidating and managing cached responses.
3838

39+
## Hat Tipping
40+
41+
A big thanks to [Draqula](https://github.com/vadimdemedes/draqula) for inspiring a lot of React Query's API and documentation. You rock!
42+
3943
## Demos
4044

4145
- [A contrived CodeSandbox example](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/example)

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ export function useRefetchQueries() {
356356
const [, , providerMetaRef] = React.useContext(context)
357357

358358
return React.useCallback(
359-
async (refetchQueries, { waitForRefetchQueries }) => {
359+
async (refetchQueries, { waitForRefetchQueries } = {}) => {
360360
const refetchQueryPromises = refetchQueries.map(async refetchQuery => {
361361
const { query, variables } =
362362
typeof refetchQuery === 'function'

0 commit comments

Comments
 (0)