comment out logging statements, update some comments/notes

This commit is contained in:
Jason Wall 2020-11-25 10:50:29 -05:00
parent ff33cdaf34
commit 932b6fc184

View File

@ -44,7 +44,7 @@ import { createSelector } from 'reselect';
* locally so the changes aren't lost, and remotely so the changes can be shared
* and persisten across devices and different installs.
*
* The listeners to the app state are initialized in the constructor.
* The listeners to the app state are initialized after local state is retrieved at startup
*/
@Injectable({
providedIn: 'root',
@ -172,7 +172,7 @@ export class StorageService extends SubscriberBase {
.subscribe((remoteData) => {
if (!isNullOrUndefined(remoteData) && !isNullOrUndefined(remoteData.value)) {
// update the app state with remote data if it isn't null
console.log('Data recieved from remote store', remoteData);
// console.log('Data recieved from remote store', remoteData);
action(remoteData);
}
})
@ -208,7 +208,7 @@ export class StorageService extends SubscriberBase {
const hasStorable = await this.local.has(path).toPromise();
if (hasStorable) {
const localData = (await this.local.get(path).toPromise()) as IStorable<T>;
console.log('Data recieved from local store', localData);
// console.log('Data recieved from local store', localData);
action(localData);
}
}
@ -223,7 +223,7 @@ export class StorageService extends SubscriberBase {
return;
}
console.log('Data saved to local store', data);
// console.log('Data saved to local store', data);
// update local
this.local.set(this.settingsPath, data).subscribe(
() => {
@ -238,7 +238,7 @@ export class StorageService extends SubscriberBase {
// update remote
if (this.settingsRemoteObject) {
console.log('Data sent to remote store', data);
// console.log('Data sent to remote store', data);
this.settingsRemoteObject.set(data);
}
})
@ -250,7 +250,7 @@ export class StorageService extends SubscriberBase {
return;
}
console.log('Data saved to local store', data);
// console.log('Data saved to local store', data);
// update local
this.local.set(this.savedPagesPath, data).subscribe(
() => {
@ -265,7 +265,7 @@ export class StorageService extends SubscriberBase {
// update remote
if (this.savedPagesRemoteObject) {
console.log('Data sent to remote store', data);
// console.log('Data sent to remote store', data);
this.savedPagesRemoteObject.set(data);
}
})
@ -277,7 +277,7 @@ export class StorageService extends SubscriberBase {
return;
}
console.log('Data saved to local store', data);
// console.log('Data saved to local store', data);
// update local
this.local.set(this.noteItemsPath, data).subscribe(
() => {
@ -292,7 +292,7 @@ export class StorageService extends SubscriberBase {
// update remote
if (this.noteItemsRemoteObject) {
console.log('Data sent to remote store', data);
// console.log('Data sent to remote store', data);
this.noteItemsRemoteObject.set(data);
}
})