mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-26 05:24:51 +08:00
docs(database): persistence is disabled by default (#3899)
Co-authored-by: Mike Diarmid <mike.diarmid@gmail.com>
This commit is contained in:
@@ -10,8 +10,8 @@ and automatically managed by the Firebase SDKs.
|
||||
|
||||
# Enabling Persistence
|
||||
|
||||
Persistence is automatically enabled by default when using Realtime Database, however it
|
||||
[can be disabled](/database/usage#disabling-persistence). To enable persistence, call the `setPersistenceEnabled`
|
||||
Persistence is disabled by default when using Realtime Database, however it
|
||||
[can be changed to be enabled by default in the firebase.json](/database/usage#enabling-persistence). You can also enable persistence programmatically, by calling the `setPersistenceEnabled`
|
||||
as early on in your application code as possible:
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user