Skip to content

Commit a566a50

Browse files
fix: build
1 parent 70f75f8 commit a566a50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/react/src/useQuerySync.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useCallback, useEffect } from "react";
22
import { Component, Metadata, Schema } from "@dojoengine/recs";
33
import { getSyncEntities } from "@dojoengine/state";
44
import {
5+
Clause,
56
EntityKeysClause,
67
Subscription,
78
ToriiClient,
@@ -30,13 +31,15 @@ import {
3031
export function useQuerySync<S extends Schema>(
3132
toriiClient: ToriiClient,
3233
components: Component<S, Metadata, undefined>[],
33-
entityKeyClause: EntityKeysClause[]
34+
entityKeyClause: EntityKeysClause[],
35+
clause?: Clause | undefined
3436
) {
3537
const setupSync = useCallback(async () => {
3638
try {
3739
return await getSyncEntities(
3840
toriiClient,
3941
components,
42+
clause,
4043
entityKeyClause
4144
);
4245
} catch (error) {

0 commit comments

Comments
 (0)