Skip to content

Commit 4effc6b

Browse files
feat: example
1 parent b373dd0 commit 4effc6b

File tree

3 files changed

+3322
-3322
lines changed

3 files changed

+3322
-3322
lines changed

examples/clients/react/react-sdk/src/App.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useEffect, useState } from "react";
22
import "./App.css";
33
import { ParsedEntity, init } from "@dojoengine/sdk";
44
import { dojoConfig } from "../dojoConfig.ts";
5-
import { Schema, schema } from "./bindings.ts";
5+
import { Direction, Schema, schema } from "./bindings.ts";
66

77
const db = await init<Schema>(
88
{
@@ -27,7 +27,10 @@ function App() {
2727
dojo_starter: {
2828
Moves: {
2929
$: {
30-
where: { remaining: { $is: 22 } },
30+
where: {
31+
can_move: { $is: true },
32+
last_direction: { $is: "Down" },
33+
},
3134
},
3235
},
3336
},

0 commit comments

Comments
 (0)