Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Oct 2, 2024
1 parent 70f75f8 commit a566a50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react/src/useQuerySync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useCallback, useEffect } from "react";
import { Component, Metadata, Schema } from "@dojoengine/recs";
import { getSyncEntities } from "@dojoengine/state";
import {
Clause,
EntityKeysClause,
Subscription,
ToriiClient,
Expand Down Expand Up @@ -30,13 +31,15 @@ import {
export function useQuerySync<S extends Schema>(
toriiClient: ToriiClient,
components: Component<S, Metadata, undefined>[],
entityKeyClause: EntityKeysClause[]
entityKeyClause: EntityKeysClause[],
clause?: Clause | undefined
) {
const setupSync = useCallback(async () => {
try {
return await getSyncEntities(
toriiClient,
components,
clause,
entityKeyClause
);
} catch (error) {
Expand Down

0 comments on commit a566a50

Please sign in to comment.