File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { useCallback, useEffect } from "react";
2
2
import { Component , Metadata , Schema } from "@dojoengine/recs" ;
3
3
import { getSyncEntities } from "@dojoengine/state" ;
4
4
import {
5
+ Clause ,
5
6
EntityKeysClause ,
6
7
Subscription ,
7
8
ToriiClient ,
@@ -30,13 +31,15 @@ import {
30
31
export function useQuerySync < S extends Schema > (
31
32
toriiClient : ToriiClient ,
32
33
components : Component < S , Metadata , undefined > [ ] ,
33
- entityKeyClause : EntityKeysClause [ ]
34
+ entityKeyClause : EntityKeysClause [ ] ,
35
+ clause ?: Clause | undefined
34
36
) {
35
37
const setupSync = useCallback ( async ( ) => {
36
38
try {
37
39
return await getSyncEntities (
38
40
toriiClient ,
39
41
components ,
42
+ clause ,
40
43
entityKeyClause
41
44
) ;
42
45
} catch ( error ) {
You can’t perform that action at this time.
0 commit comments