You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use Promise to Replace Observable Only Emitting Once. See #233.
- Remove impl suffix from table preferences classes.
- Remove unused utils.
- Suppress tslint:await-promise rule for crypto.ts.
- The committed codes should pass all GitHub checks.
71
71
- Use [Visual Studio Code](https://code.visualstudio.com/) with workspace settings for consistent coding style.
72
72
- Use [Prettier extension](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) to auto format on save.
73
+
- Prefer `Promise` than `Observable` when only emitting one value. See [issue #233](https://github.com/numbersprotocol/capture-lite/issues/233).
74
+
- Avoid using `toPromise()` to convert `Observable` to `Promise` as [it is an anti-pattern](https://stackoverflow.com/a/49596716/8789738).
Copy file name to clipboardExpand all lines: src/app/services/preference-manager/preferences/capacitor-storage-preferences/capacitor-storage-preferences.spec.ts
Copy file name to clipboardExpand all lines: src/app/services/preference-manager/preferences/capacitor-storage-preferences/capacitor-storage-preferences.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ import { Preferences } from '../preferences';
0 commit comments