Skip to content

Commit

Permalink
Add mutation warning to FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueWill committed Dec 6, 2020
1 parent ecdd894 commit 73d737e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ A.

- Both `publish` and `enabled` should be fast
- Both `publish` and `enabled` should **not** throw (they should catch any errors)
- Both `publish` and `enabled` should **not** mutate the results (particularly the `controlResult`). Tzientist does not do any deep cloning on its own. If you want to alter the results for a custom compare, consider using something like [Lodash's](https://lodash.com/) `cloneDeep` first.

---

Expand Down

0 comments on commit 73d737e

Please sign in to comment.