Skip to content

Commit

Permalink
Revert "perf(zbugs): use maxRecentQueries:20 in zbugs (#3365)" (#3366)
Browse files Browse the repository at this point in the history
This reverts commit 5b43397.
  • Loading branch information
grgbkr authored Dec 16, 2024
1 parent 46d2d46 commit 51b2118
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/zbugs/src/zero-setup.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -31,7 +30,7 @@ authAtom.value =
authAtom.onChange(auth => {
zeroAtom.value?.close();
mark('creating new zero');
const zOptions: ZeroAdvancedOptions<typeof schema> = {
const z = new Zero({
logLevel: 'info',
server: import.meta.env.VITE_PUBLIC_SERVER,
userID: auth?.decoded?.sub ?? 'anon',
Expand All @@ -44,9 +43,7 @@ authAtom.onChange(auth => {
return auth?.encoded;
},
schema,
maxRecentQueries: 20,
};
const z = new Zero(zOptions);
});
zeroAtom.value = z;

exposeDevHooks(z);
Expand Down

0 comments on commit 51b2118

Please sign in to comment.