File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export const useQuery = <T = any>(
6262 const [ isFetching , setIsFetching ] = React . useState ( true ) ;
6363 const [ tables , setTables ] = React . useState ( [ ] ) ;
6464
65- const memoizedParams = React . useMemo ( ( ) => parameters , [ ...queryParameters ] ) ;
65+ const memoizedParams = React . useMemo ( ( ) => queryParameters , [ ...queryParameters ] ) ;
6666 const memoizedOptions = React . useMemo ( ( ) => options , [ JSON . stringify ( options ) ] ) ;
6767 const abortController = React . useRef ( new AbortController ( ) ) ;
6868
@@ -85,7 +85,7 @@ export const useQuery = <T = any>(
8585 const fetchData = async ( ) => {
8686 setIsFetching ( true ) ;
8787 try {
88- const result = await powerSync . getAll < T > ( sqlStatement , parameters ) ;
88+ const result = await powerSync . getAll < T > ( sqlStatement , queryParameters ) ;
8989 handleResult ( result ) ;
9090 } catch ( e ) {
9191 console . error ( 'Failed to fetch data:' , e ) ;
You can’t perform that action at this time.
0 commit comments