Skip to content

Commit 653ab0b

Browse files
author
devgioele
committed
rename queryIsReady to isQueryReady
1 parent 9109fdf commit 653ab0b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/engine/query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export type Router = {
3535
}
3636

3737
export type RouterSSR = Router & {
38-
isReady: boolean
38+
isQueryReady: boolean
3939
}
4040

4141
export const useQuery = (router: Router, defaultQuery: Query) => {

src/routers/nextRouter.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const useNextRouter = (
5555
})
5656
}
5757
},
58-
isReady: nextRouter.isReady,
58+
isQueryReady: nextRouter.isReady,
5959
}
6060
}
6161

@@ -69,7 +69,7 @@ export const useQuery = <
6969
) => {
7070
const router = useNextRouter(options)
7171
const result = useAbstractQuery(router, parseQuery, defaultQuery, options)
72-
return { ...result, queryIsReady: router.isReady }
72+
return { ...result, isQueryReady: router.isQueryReady }
7373
}
7474

7575
export const useQueryAndPagination = <
@@ -89,7 +89,7 @@ export const useQueryAndPagination = <
8989
defaultPagination,
9090
options,
9191
)
92-
return { ...result, queryIsReady: router.isReady }
92+
return { ...result, isQueryReady: router.isQueryReady }
9393
}
9494

9595
export const usePagination = (
@@ -103,7 +103,7 @@ export const usePagination = (
103103
setSize,
104104
setPagination,
105105
resetPagination,
106-
queryIsReady,
106+
isQueryReady,
107107
} = useQueryAndPagination(() => ({}), {}, defaultPagination, options)
108108
return {
109109
page,
@@ -112,6 +112,6 @@ export const usePagination = (
112112
setSize,
113113
setPagination,
114114
resetPagination,
115-
queryIsReady,
115+
isQueryReady,
116116
}
117117
}

0 commit comments

Comments
 (0)