Skip to content

Commit

Permalink
Expose redux store as context.store for simplicity.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtias authored and aduth committed Dec 10, 2015
1 parent 68066bc commit cbe75d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/boot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function setUpContext( layout ) {
var parsed = url.parse( location.href, true );

context.layout = layout;
context.reduxStore = reduxStore;
context.store = reduxStore;

// Break routing and do full page load for logout link in /me
if ( context.pathname === '/wp-login.php' ) {
Expand Down
2 changes: 1 addition & 1 deletion client/post-editor/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function renderEditor( context, postType ) {

React.unmountComponentAtNode( document.getElementById( 'secondary' ) );
React.render(
React.createElement( ReduxProvider, { store: context.reduxStore }, () => {
React.createElement( ReduxProvider, { store: context.store }, () => {
return React.createElement( PreferencesData, null,
React.createElement( PostEditor, {
sites: sites,
Expand Down

0 comments on commit cbe75d5

Please sign in to comment.