11import { defineConfig } from '@agile-ts/utils' ;
22import { logCodeManager } from '../logCodeManager' ;
33import { Collection , CollectionKey , DefaultItem , ItemKey } from './collection' ;
4- import { Group , GroupKey } from './group' ;
4+ import type { Group , GroupKey } from './group' ;
55import {
66 CreatePersistentConfigInterface ,
77 getSharedStorageManager ,
@@ -137,9 +137,8 @@ export class CollectionPersistent<
137137 // that it was loaded completely.
138138 // After a successful loading assign the now valid Item to the Collection.
139139 else {
140- const placeholderItem = this . collection ( ) . getItemWithReference (
141- itemKey
142- ) ;
140+ const placeholderItem =
141+ this . collection ( ) . getItemWithReference ( itemKey ) ;
143142 placeholderItem ?. persist ( {
144143 key : itemStorageKey ,
145144 loadValue : false ,
@@ -148,7 +147,8 @@ export class CollectionPersistent<
148147 followCollectionPersistKeyPattern : false , // Because of the dynamic 'storageItemKey', the key is already formatted above
149148 } ) ;
150149 if ( placeholderItem ?. persistent ?. ready ) {
151- const loadedPersistedValueIntoItem = await placeholderItem . persistent . loadPersistedValue ( ) ;
150+ const loadedPersistedValueIntoItem =
151+ await placeholderItem . persistent . loadPersistedValue ( ) ;
152152
153153 // If successfully loaded Item value, assign Item to Collection
154154 if ( loadedPersistedValueIntoItem ) {
0 commit comments