File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -5,9 +5,13 @@ import { PortraitUpload } from './components/PortraitUpload';
55import { VoucherConfig } from './components/VoucherConfig' ;
66import { BillPreview } from './components/BillPreview' ;
77import { ExportButton } from './components/ExportButton' ;
8- import { useBillStore } from './stores/billStore' ;
8+ import { useBillStore , initializeBillStore } from './stores/billStore' ;
99
1010function 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 ) ;
You can’t perform that action at this time.
0 commit comments