Skip to content

Commit 86c4f51

Browse files
committed
Add tinybase client to window for easier debugging
1 parent 8249955 commit 86c4f51

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/app/src/lib/shopping-list.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ async function init() {
5353
await persister.save()
5454
}
5555

56-
if (!isServer) init()
56+
if (!isServer) {
57+
init()
58+
;(window as any).tb = store
59+
}
5760

5861
export const shopping = createTinybaseClient(store)

0 commit comments

Comments
 (0)