Skip to content
Source
Sign inSign up
TanStack/query

A few typos + function cleanup #26

Mergeddonavon(GitHub profile, opens in a new tab)merged 4 commits intomaster fromrefs/pull/26/headmerged by tannerlinsley View on GitHub

Showing 2 changed files with 7 additions and 16 deletions.

x
0 of 2 viewed, 2 left
6 additions and 15 deletionssrc/index.jsModified
View file
@@ -528,7 +528,7 @@
variables,
] = defaultConfig.queryKeySerializerFn(queryKey)
​
- // If we're simpley refetching an existing query, then go find them
+ // If we're simply refetching an existing query, then go find them
// and call their fetch functions
​
if (!queryGroup) {
@@ -710,7 +710,7 @@
? Object.assign(
{},
...Object.keys(value)
- .sort((keyA, keyB) => (keyA > keyB ? 1 : keyB > keyA ? -1 : 0))
+ .sort()
.map(key => ({
[key]: value[key],
}))
@@ -727,22 +727,13 @@
​
function isDocumentVisible() {
- if (typeof document.visibilityState !== 'undefined') {
- return (
- document.visibilityState === 'visible' ||
- document.visibilityState === 'prerender'
- )
- }