Skip to content
Closed
Show file tree
Hide file tree
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
8 changes: 5 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"stage": 0,
"loose": "all",
"presets": [
"es2015",
"stage-0",
"react"
]
}

10 changes: 5 additions & 5 deletions modules/AsyncProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ class AsyncPropsContainer extends React.Component {
static propTypes = {
Component: func.isRequired,
routerProps: object.isRequired
}
};

static contextTypes = {
asyncProps: object.isRequired
}
};

componentWillReceiveProps(nextProps) {
const paramsChanged = !shallowEqual(nextProps.routerProps.routeParams,
Expand Down Expand Up @@ -181,7 +181,7 @@ class AsyncProps extends React.Component {

static childContextTypes = {
asyncProps: object
}
};

static propTypes = {
components: array.isRequired,
Expand All @@ -193,7 +193,7 @@ class AsyncProps extends React.Component {
// server rendering
propsArray: array,
componentsArray: array
}
};

static defaultProps = {
onError(err) {
Expand All @@ -207,7 +207,7 @@ class AsyncProps extends React.Component {
render(props) {
return <RouterContext {...props} createElement={createElement}/>
}
}
};

constructor(props, context) {
super(props, context)
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@
"react-router": "2.0.0-rc4"
},
"devDependencies": {
"babel": "^5.8.34",
"babel-core": "^5.8.34",
"babel-cli": "^6.4.0",
"babel-eslint": "^3.1.23",
"babel-loader": "^5.4.0",
"babel-loader": "~6.2.1",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"eslint": "1.4.1",
"eslint-config-rackt": "1.0.0",
"eslint-plugin-react": "3.3.2",
Expand Down