Skip to content

Commit

Permalink
fix(alpine): use generator in the store class
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Dec 12, 2024
1 parent 77eecce commit c3b9768
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/alpine/src/store/store.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import {type AlwatrLogger, createLogger} from '@alwatr/logger';

import {alpineStoreGenerator} from './store-generator.js';

/**
* AlpineStore Options.
*
Expand Down Expand Up @@ -44,6 +46,6 @@ export class AlpineStore<T extends DictionaryReq> {
this.logger_ = createLogger(`${__package_name__}:${config.name}`);
this.logger_.logMethodArgs?.('constructor', config);

this.store = config.defaultValue;
this.store = alpineStoreGenerator(config);
}
}

0 comments on commit c3b9768

Please sign in to comment.