Skip to content

Commit

Permalink
fix callback
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Dec 13, 2023
1 parent eccfb71 commit ec49cda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/react/src/useSyncWorld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ export const syncEntities = async <S extends Schema>(
client: Client,
components: Component<S, Metadata, undefined>[]
) => {
client.onEntityUpdated((entities: any[]) => {
setEntities(entities, components);
});
client.onEntityUpdated([], (entities: any) =>
setEntities(entities, components)
);
};

export const setEntities = async <S extends Schema>(
Expand Down
8 changes: 4 additions & 4 deletions packages/torii-wasm/crate/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ec49cda

Please sign in to comment.