Skip to content

Commit af81147

Browse files
antontranelisclaude
andcommitted
fix: add initializeBillStore call in App.tsx for IndexedDB hydration
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f029774 commit af81147

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@antontranelis/money-printer",
3-
"version": "1.0.88",
3+
"version": "1.0.89",
44
"description": "Create personalized time vouchers that look like real currency. React components for voucher generation with PDF export.",
55
"type": "module",
66
"license": "MIT",

src/App.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ import { PortraitUpload } from './components/PortraitUpload';
55
import { VoucherConfig } from './components/VoucherConfig';
66
import { BillPreview } from './components/BillPreview';
77
import { ExportButton } from './components/ExportButton';
8-
import { useBillStore } from './stores/billStore';
8+
import { useBillStore, initializeBillStore } from './stores/billStore';
99

1010
function App() {
11+
// Initialize store hydration from IndexedDB
12+
useEffect(() => {
13+
initializeBillStore();
14+
}, []);
1115
const appLanguage = useBillStore((state) => state.appLanguage);
1216
const currentSide = useBillStore((state) => state.currentSide);
1317
const portrait = useBillStore((state) => state.portrait);

0 commit comments

Comments
 (0)