Skip to content

Commit

Permalink
docs(website): update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Jun 17, 2024
1 parent 038b60f commit 63b2ca0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/docs/api-reference/current.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The `current()` API provides developers with a way to capture the current state

Moreover, references to the object returned by `current()` can be safely retained outside of the `create` function without the risk of unintended side effects. It essentially gives you a snapshot of the state in the midst of mutation operations.

Here's how `current()` behaves within the Mutative framework:
Here's how `current()` behaves within the Mutative:

- Objects generated by `current()` will have structural sharing with their original counterparts wherever no modifications have been made.
- If a draft has not been changed, it is usually true that [`original(draft)`](/docs/api-reference/original) will be strictly equal to `current(draft)`, although this is not a strict guarantee.
Expand Down
3 changes: 2 additions & 1 deletion website/docs/extra-topics/mutative-ecosystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ The following are other libraries created based on Mutative:
- [use-mutative](https://github.com/mutativejs/use-mutative) - A 2-6x faster alternative to useState with spread operation
- [use-travel](https://github.com/mutativejs/use-travel) - A React hook for state time travel with undo, redo, reset and archive functionalities.
- [mutative-compat](https://github.com/exuanbo/mutative-compat) - Mutative wrapper with full Immer API compatibility.
- [mutability ](https://github.com/mutativejs/mutability ) - A JavaScript library for transactional mutable updates.
- [mutability](https://github.com/mutativejs/mutability) - A JavaScript library for transactional mutable updates.
- [zustand-mutative](https://github.com/mutativejs/mutability) - A Mutative middleware for Zustand enhances the efficiency of immutable state updates.

0 comments on commit 63b2ca0

Please sign in to comment.