Skip to content

Commit

Permalink
docs: add "exception" to a sentence (#1882 by @abhagsain)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
abhagsain authored May 9, 2022
1 parent b98129f commit cf36cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/intro/philosophy.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ For futher reading: the conceptual difference between snapshots, patches and act
Finally, MST has built-in support for references, identifiers, dependency injection, change recording and circular type definitions (even across files).
Even fancier, it analyses liveliness of objects, failing early when you try to access accidentally cached information! (More on that later)

A unique feature of MST is that it offers liveliness guarantees. MST will throw when reading or writing from objects that are no longer part of a state tree. This protects you against accidental stale reads of objects still referred by, for example, a closure.
A unique feature of MST is that it offers liveliness guarantees. MST will throw an exception when reading or writing from objects that are no longer part of a state tree. This protects you against accidental stale reads of objects still referred by, for example, a closure.

```javascript
const oldTodo = store.todos[0]
Expand Down

0 comments on commit cf36cfe

Please sign in to comment.