Skip to content

Commit 85cd95b

Browse files
authored
Upgrade to v0.22 (#48)
1 parent 5332452 commit 85cd95b

File tree

4 files changed

+14
-20
lines changed

4 files changed

+14
-20
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ VITE_PUBLIC_SERVER='http://localhost:4848'
22
ZERO_UPSTREAM_DB="postgresql://user:[email protected]:5430/postgres"
33
ZERO_AUTH_SECRET="secretkey"
44
ZERO_REPLICA_FILE="/tmp/hello_zero_replica.db"
5+
ZERO_LOG_LEVEL="debug"

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"lint": "eslint ."
1414
},
1515
"dependencies": {
16-
"@rocicorp/zero": "0.21.2025063000",
16+
"@rocicorp/zero": "0.22.2025080100",
1717
"jose": "^5.9.6",
1818
"js-cookie": "^3.0.5",
1919
"react": "^18.3.1",

src/App.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,14 @@ import { randomMessage } from "./test-data";
1010

1111
function App() {
1212
const z = useZero<Schema>();
13-
const [users] = useQuery(z.query.user, {
14-
ttl: "5m",
15-
});
16-
17-
const [mediums] = useQuery(z.query.medium, {
18-
ttl: "5m",
19-
});
13+
const [users] = useQuery(z.query.user);
14+
const [mediums] = useQuery(z.query.medium);
2015

2116
const [filterUser, setFilterUser] = useState("");
2217
const [filterText, setFilterText] = useState("");
2318

2419
const all = z.query.message;
25-
const [allMessages] = useQuery(all, {
26-
ttl: "5m",
27-
});
20+
const [allMessages] = useQuery(all);
2821

2922
let filtered = all
3023
.related("medium")

0 commit comments

Comments
 (0)