Skip to content

Commit 12e51c3

Browse files
committed
wip: formatting
1 parent 29ee7e0 commit 12e51c3

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

lib/sqlsync-solid-js/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
}
4444
},
4545
"scripts": {
46-
"dev": "vite",
4746
"build": "rollup --config"
4847
},
4948
"devDependencies": {

lib/sqlsync-solid-js/src/hooks.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

3131
type UseQueryFn = <R = Row>(
3232
docId: Accessor<DocId>,
33-
query: Accessor<ParameterizedQuery | string>
33+
query: Accessor<ParameterizedQuery | string>,
3434
) => Accessor<QueryState<R>>;
3535

3636
type 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> =
7575
export 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

Comments
 (0)