Skip to content

Commit 73d737e

Browse files
committed
Add mutation warning to FAQ
1 parent ecdd894 commit 73d737e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ A.
160160

161161
- Both `publish` and `enabled` should be fast
162162
- Both `publish` and `enabled` should **not** throw (they should catch any errors)
163+
- 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.
163164

164165
---
165166

0 commit comments

Comments
 (0)