Skip to content
This repository has been archived by the owner on Oct 24, 2021. It is now read-only.

Update redux-store.html to support REDUX DEV TOOLS Chrome extension #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions ep62-redux-async/redux-store.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@
username: action.username
});
}
}
const store = Redux.createStore(
}
var store = Redux.createStore(
reducer,
Redux.applyMiddleware(ReduxThunk.default)
);
Redux.compose(
Redux.applyMiddleware(ReduxThunk.default),
window.devToolsExtension ?
window.devToolsExtension() :
v => v
));
const ReduxBehavior = PolymerRedux(store);
const AsyncActionsBehavior = {
actions: {
Expand All @@ -56,4 +60,4 @@
}
}
};
</script>
</script>