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
Copy file name to clipboardExpand all lines: README.md
+1-11Lines changed: 1 addition & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -146,17 +146,7 @@ See the [full validation guide](./docs/VALIDATION.md) to see how to validate all
146
146
147
147
You *DO NOT* need to unsubscribe: the `Observable` autocompletes (like in the `HttpClient` service).
148
148
149
-
But you *DO* need to subscribe, even if you don't have something specific to do after writing in local storage (because it's how RxJS Observables work).
150
-
151
-
```typescript
152
-
this.localStorage.setItemSubscribe('user', user);
153
-
this.localStorage.removeItemSubscribe('user');
154
-
this.localStorage.clearSubscribe();
155
-
```
156
-
157
-
*Use these methods **only** if these conditions are fulfilled:*
158
-
- you don't need to manage the error callback (with these methods, errors will silently fail),
159
-
- you don't need to wait the operation to finish before the next one (remember, it's asynchronous).
149
+
But **you *DO* need to subscribe**, even if you don't have something specific to do after writing in local storage (because it's how RxJS Observables work).
0 commit comments