@@ -18,7 +18,7 @@ export function useSQLSync(): Accessor<SQLSync> {
1818 const value = sqlSync ( ) ;
1919 if ( ! value ) {
2020 throw new Error (
21- "could not find sqlsync context value; please ensure the component is wrapped in a <SqlSyncProvider>"
21+ "could not find sqlsync context value; please ensure the component is wrapped in a <SqlSyncProvider>" ,
2222 ) ;
2323 }
2424 return value ;
@@ -30,7 +30,7 @@ type UseMutateFn<M> = (docId: DocId) => MutateFn<M>;
3030
3131type UseQueryFn = < R = Row > (
3232 docId : Accessor < DocId > ,
33- query : Accessor < ParameterizedQuery | string >
33+ query : Accessor < ParameterizedQuery | string > ,
3434) => Accessor < QueryState < R > > ;
3535
3636type SetConnectionEnabledFn = ( enabled : boolean ) => Promise < void > ;
@@ -50,7 +50,7 @@ export function createDocHooks<M>(docType: Accessor<DocType<M>>): DocHooks<M> {
5050
5151 const useQueryWrapper = < R = Row > (
5252 docId : Accessor < DocId > ,
53- query : Accessor < ParameterizedQuery | string >
53+ query : Accessor < ParameterizedQuery | string > ,
5454 ) => {
5555 return useQuery < M , R > ( docType , docId , query ) ;
5656 } ;
@@ -75,13 +75,13 @@ export type QueryState<R> =
7575export function useQuery < M , R = Row > (
7676 docType : Accessor < DocType < M > > ,
7777 docId : Accessor < DocId > ,
78- rawQuery : Accessor < ParameterizedQuery | string >
78+ rawQuery : Accessor < ParameterizedQuery | string > ,
7979) : Accessor < QueryState < R > > {
8080 const sqlsync = useSQLSync ( ) ;
8181 const [ state , setState ] = createSignal < QueryState < R > > ( { state : "pending" } ) ;
8282
8383 createEffect ( ( ) => {
84- let query = normalizeQuery ( rawQuery ( ) ) ;
84+ const query = normalizeQuery ( rawQuery ( ) ) ;
8585
8686 const [ unsubPromise , unsubResolve ] = pendingPromise < ( ) => void > ( ) ;
8787
0 commit comments