You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/documentation/docs/api/vuexfire.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,13 +68,14 @@ Can contain the following properties:
68
68
69
69
-`maxRefDepth`: How many levels of nested references should be automatically bound. Defaults to 2, meaning that References inside of References inside of documents bound with `bindFirestoreRef` will automatically be bound too.
70
70
-`reset`: Allows to define the behavior when a previously bound reference is unbound. Defaults to `true`, which resets the property in the vue instance to `null` for documents and to an empty array `[]` for collections. It can also be set to a function returning a value to customize the value set. Setting it to `false` will keep the data as-is when unbinding.
71
+
-`wait`: Waits for the binding to be completely resolved before setting the value in data. This will also force `reset: false` unless `reset` is provided as a function.
71
72
-`serialize`: a function to provide a custom serialization strategy when a
72
73
document from firebase is set on the Vue instance. This allows to customize
73
74
the `id` key, to transform data, etc. See [Vuefire plugin options for examples](./vuefire.md#options-serialize)
@@ -112,12 +113,13 @@ Returns a promise that is resolved once the data is fetched and the state is in
112
113
Can contain the following properties:
113
114
114
115
-`reset`: Allows to define the behavior when a previously bound reference is unbound. Defaults to `true`, which resets the property in the vue instance to `null` for properties bound as objects and to an empty array `[]` for properties bound as arrays. It can also be set to a function returning a value to customize the value set. Setting it to `false` will keep the data as-is when unbinding.
116
+
-`wait`: Waits for the binding to be completely resolved before setting the value in data. This will also force `reset: false` unless `reset` is provided as a function.
115
117
-`serialize`: a function to provide a custom serialization strategy when a
116
118
document from firebase is set on the Vue instance. This allows to customize
117
119
the `id` key, to transform data, etc. See [Vuefire plugin options for examples](./vuefire.md#options-serialize-2)
0 commit comments