From 51b21184d13c508656617e0c9f079a86f95002eb Mon Sep 17 00:00:00 2001 From: Greg Baker Date: Mon, 16 Dec 2024 14:25:11 -0700 Subject: [PATCH] Revert "perf(zbugs): use maxRecentQueries:20 in zbugs (#3365)" (#3366) This reverts commit 5b433972cdfd2a6c705d735bc973b17bdb935f50. --- apps/zbugs/src/zero-setup.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/zbugs/src/zero-setup.ts b/apps/zbugs/src/zero-setup.ts index 768aaeb7b..0e97c1f39 100644 --- a/apps/zbugs/src/zero-setup.ts +++ b/apps/zbugs/src/zero-setup.ts @@ -1,5 +1,4 @@ import {Zero} from '@rocicorp/zero'; -import {type ZeroAdvancedOptions} from '@rocicorp/zero/advanced'; import {Atom} from './atom.js'; import {type Schema, schema} from '../schema.js'; import {clearJwt, getJwt, getRawJwt} from './jwt.js'; @@ -31,7 +30,7 @@ authAtom.value = authAtom.onChange(auth => { zeroAtom.value?.close(); mark('creating new zero'); - const zOptions: ZeroAdvancedOptions = { + const z = new Zero({ logLevel: 'info', server: import.meta.env.VITE_PUBLIC_SERVER, userID: auth?.decoded?.sub ?? 'anon', @@ -44,9 +43,7 @@ authAtom.onChange(auth => { return auth?.encoded; }, schema, - maxRecentQueries: 20, - }; - const z = new Zero(zOptions); + }); zeroAtom.value = z; exposeDevHooks(z);