Skip to content

Commit 33006b5

Browse files
committed
merge commit
2 parents 9f56d28 + cc2b938 commit 33006b5

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,7 @@ See the [full validation guide](./docs/VALIDATION.md) to see how to validate all
146146

147147
You *DO NOT* need to unsubscribe: the `Observable` autocompletes (like in the `HttpClient` service).
148148

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).
160150

161151
### Errors
162152

0 commit comments

Comments
 (0)