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
// This is triggered when the "Add New Todo" button is clicked.
179
180
onSubmit(e) {
180
181
e.preventDefault();
181
182
// Add the new todo to Firebase.
@@ -190,7 +191,7 @@ class MyComponent extends React.Component {
190
191
}
191
192
```
192
193
193
-
Note how we are not updating the `todoList` in the local state. You only need to update Firebase and the Firebase observer that was set up will take care of propagating the changes and updating the local state.
194
+
Note how we are **not** updating the `todoList` in the local state. You only need to update Firebase and the Firebase observer that was set up will take care of propagating the changes and updating the local state.
0 commit comments