Skip to content

Commit c43dbb3

Browse files
get TODOs
1 parent 9f4603b commit c43dbb3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ep29-emit/app/components/App.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ export default class App extends React.Component {
1616
}
1717

1818
componentDidMount () {
19-
var storeIsTellingUsThatDataHasChanged = (todos) => {
19+
var storeIsTellingUsThatDataHasChanged = () => {
2020
console.log("Store is telling us that data has change");
21+
var todos = TodoStore.getTodos();
22+
console.log("todos is");
23+
console.log(todos);
2124
this.setState({todos: todos});
2225
}
2326
TodoStore.addChangeListener(storeIsTellingUsThatDataHasChanged);

0 commit comments

Comments
 (0)