Skip to content

Commit

Permalink
docs(readme): update reactive map
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed Jan 18, 2024
1 parent fb0eda4 commit 2089354
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,11 @@ const item$ = flatten(map.$, map => map.get("someKey")); // watch the item at "s

console.log(item$.value); // undefined

map.set("someKey", v);
map.set("someKey", v); // set a val, the value inside the val is subscribed and flatten to `item$`

console.log(item$.value); // "someValue"

v.set("someValue2");
v.set("someValue2"); // you can also set a non-val value, which is passed to `item$`` directly

console.log(item$.value); // "someValue2"
```

0 comments on commit 2089354

Please sign in to comment.