File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
lib/sessionManager/stores Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ export class ChromeStore<V extends string = StorageKeys>
5353 } ) ;
5454 } ,
5555 ) ;
56+ this . notifyListeners ( ) ;
5657 return ;
5758 }
5859 await chrome . storage . local . set ( {
Original file line number Diff line number Diff line change @@ -40,9 +40,7 @@ export class ExpoSecureStore<
4040 */
4141 async destroySession ( ) : Promise < void > {
4242 const keys = Object . values ( StorageKeys ) ;
43- keys . forEach ( async ( key ) => {
44- await this . removeSessionItem ( key ) ;
45- } ) ;
43+ await Promise . all ( keys . map ( ( key ) => this . removeSessionItem ( key ) ) ) ;
4644
4745 this . notifyListeners ( ) ;
4846 }
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ export class LocalStorage<V extends string = StorageKeys>
2424 * @returns {void }
2525 */
2626 async destroySession ( ) : Promise < void > {
27- this . internalItems . forEach ( ( key ) => {
28- this . removeSessionItem ( key ) ;
29- } ) ;
27+ await Promise . all (
28+ Array . from ( this . internalItems ) . map ( ( key ) => this . removeSessionItem ( key ) ) ,
29+ ) ;
3030
3131 this . notifyListeners ( ) ;
3232 }
You can’t perform that action at this time.
0 commit comments