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
@@ -144,7 +147,7 @@ class MyComponent extends React.Component {
144
147
145
148
### Updating data
146
149
147
-
When updating data, do not set the local state. Setting the local state will not update Firebase. Instead you should update your data on Firebase directly, this will trigger any observers that you have setup locally instantly from cache.
150
+
When updating data, do not modify the local state directly. Modifying the local state will not update the data on Firebase. Instead you should only update your data on Firebase, this will trigger any observers that you have setup locally instantly from cache.
148
151
149
152
For instance, let's take an app that has a list of todo items stored on Firebase. It also has a text field and a button to add new todos:
0 commit comments