File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,8 @@ export class FirebaseFirestore {
136
136
/**
137
137
* Attempts to enable persistent storage, if possible.
138
138
*
139
- * Must be called before any other methods (other than settings()).
139
+ * Must be called before any other methods (other than settings() and
140
+ * clearPersistence()).
140
141
*
141
142
* If this fails, enablePersistence() will reject the promise it returns.
142
143
* Note that even after this failure, the firestore instance will remain
@@ -217,7 +218,12 @@ export class FirebaseFirestore {
217
218
app : any ;
218
219
219
220
/**
220
- * Clears the persistence cache. This can only be called when the client is not running.
221
+ * Clears the persistent storage.
222
+ *
223
+ * Must be called after the app is shutdown or before other methods (other
224
+ * than settings()). If the client is still running, an exception `code` will be thrown.
225
+ *
226
+ * * failed-precondition: The app is still running in a browser tab.
221
227
*
222
228
* @return A promise that is resolved once the persistence has been cleared.
223
229
*/
You can’t perform that action at this time.
0 commit comments