Skip to content

Commit

Permalink
Updated packages and fixed bug #17
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwolfz committed Jan 10, 2017
1 parent 62f6575 commit 980cce1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
24 changes: 12 additions & 12 deletions package.json
Expand Up @@ -37,14 +37,14 @@
"extract-text-webpack-plugin": "^2.0.0-beta.4",
"fast-async": "6.2.0",
"file-loader": "0.9.0",
"history": "^4.5.0",
"inferno": "1.0.7",
"inferno-component": "1.0.7",
"inferno-create-class": "1.0.7",
"inferno-create-element": "1.0.7",
"inferno-mobx": "1.0.7",
"inferno-router": "1.0.7",
"inferno-server": "1.0.7",
"history": "^4.5.1",
"inferno": "1.1.2",
"inferno-component": "1.1.2",
"inferno-create-class": "1.1.2",
"inferno-create-element": "1.1.2",
"inferno-mobx": "1.1.2",
"inferno-router": "1.1.2",
"inferno-server": "1.1.2",
"isomorphic-fetch": "2.2.1",
"json-loader": "0.5.4",
"jwt-simple": "^0.5.1",
Expand All @@ -56,21 +56,21 @@
"koa-mount": "^2.0.0",
"koa-router": "^7.1.0",
"koa-static": "^2.0.0",
"mobx": "2.7.0",
"mobx": "3.0.0",
"mobx-inferno": "^0.2.1",
"mongoose": "4.7.6",
"node-sass": "4.1.1",
"node-sass": "4.2.0",
"promise-polyfill": "6.0.2",
"sass-loader": "4.1.1",
"serve-favicon": "2.3.2",
"style-loader": "0.13.1",
"webpack": "^2.2.0-rc.0"
},
"devDependencies": {
"inferno-devtools": "1.0.7",
"inferno-devtools": "1.1.2",
"babel-eslint": "^7.1.1",
"cross-env": "3.1.4",
"eslint": "^3.12.2",
"eslint": "^3.13.1",
"nodemon": "1.11.0",
"webpack-dev-server": "2.1.0-beta.11"
}
Expand Down
7 changes: 7 additions & 0 deletions src/client/client.js
Expand Up @@ -26,6 +26,13 @@ window.browserHistory.listen(location => {
onEnter(match(routing, location), stores)
})

/**
* Enable devtools
*/
if (module.hot) {
require('inferno-devtools')
}

/**
* Render our component according to our routes
*/
Expand Down
4 changes: 2 additions & 2 deletions src/stores/account.js
@@ -1,4 +1,4 @@
import { extendObservable, asFlat } from 'mobx'
import { extendObservable, observable } from 'mobx'

/**
* @class Account
Expand All @@ -10,7 +10,7 @@ export default class Account {
extendObservable(this, {
username: null,
token: null,
users: asFlat([])
users: observable.shallowArray([])
}, state)
}

Expand Down
4 changes: 2 additions & 2 deletions src/stores/todos.js
@@ -1,4 +1,4 @@
import { extendObservable, asFlat } from 'mobx'
import { extendObservable, observable } from 'mobx'

/**
* @class Todos
Expand All @@ -9,7 +9,7 @@ export default class Todos {
this.request = request
extendObservable(this, {
loading: false,
items: []
items: observable.shallowArray([])
}, state)
}

Expand Down

0 comments on commit 980cce1

Please sign in to comment.