mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-15 23:04:07 +08:00
[types][database] fix setPersistenceEnabled message - is per app
This commit is contained in:
@@ -13258,7 +13258,7 @@
|
||||
"kindString": "Call signature",
|
||||
"flags": {},
|
||||
"comment": {
|
||||
"shortText": "Sets whether persistence is enabled for all database calls across all app\ninstances.",
|
||||
"shortText": "Sets whether persistence is enabled for all database calls for the current app\ninstance.",
|
||||
"text": "> Ensure this is called before any database calls are performed, otherwise\npersistence will only come into effect when the app is next started.\n\n#### Example\n\n```js\nfirebase.database().setPersistenceEnabled(true);\n\nasync function bootstrap() {\n // Bootstrapping application\n const snapshot = await firebase.database().ref('settings').once('value');\n}\n```\n"
|
||||
},
|
||||
"parameters": [
|
||||
|
||||
File diff suppressed because one or more lines are too long
4
packages/database/lib/index.d.ts
vendored
4
packages/database/lib/index.d.ts
vendored
@@ -1146,8 +1146,8 @@ export namespace Database {
|
||||
goOffline(): Promise<void>;
|
||||
|
||||
/**
|
||||
* Sets whether persistence is enabled for all database calls across all app
|
||||
* instances.
|
||||
* Sets whether persistence is enabled for all database calls for the current app
|
||||
* instance.
|
||||
*
|
||||
* > Ensure this is called before any database calls are performed, otherwise
|
||||
* persistence will only come into effect when the app is next started.
|
||||
|
||||
Reference in New Issue
Block a user