Skip to content

Commit f0adecc

Browse files
committed
docs(firestore, increment): make warning more serious but more vague at same time
1 parent 3145e8d commit f0adecc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/firestore/lib/index.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -720,9 +720,8 @@ export namespace FirebaseFirestoreTypes {
720720
* });
721721
* ```
722722
*
723-
* Please be careful using this operator. If writes happen to the field *on the backend / out of your control* to this field
724-
* in rapid succession - multiple writes in a second or two, *some increments will be lost*.
725-
* This may be avoided by using the special increment field in a transaction.
723+
* Please be careful using this operator. It may not be reliable enough for use in strict accounting, as it
724+
* appears writes may be dropped in situations not fully understood yet, but possibly correlated with increment frequency.
726725
* See https://github.com/invertase/react-native-firebase/discussions/5914
727726
*
728727
* @param n The value to increment by.

0 commit comments

Comments
 (0)