diff --git a/package.json b/package.json index f890332..f801ca3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mobx-rest", - "version": "0.1.0", + "version": "0.1.1", "description": "REST conventions for mobx.", "repository": { "type": "git", diff --git a/src/Collection.js b/src/Collection.js index e642eb5..9975f30 100644 --- a/src/Collection.js +++ b/src/Collection.js @@ -19,8 +19,8 @@ interface ApiInterface { // eslint-disable-line } class Collection { - @observable request: ?Request - @observable error: ?Error + @observable request: ?Request = null + @observable error: ?Error = null @observable models: [] = [] api: ApiInterface // eslint-disable-line diff --git a/src/Model.js b/src/Model.js index a59e49d..1dd70a1 100644 --- a/src/Model.js +++ b/src/Model.js @@ -5,8 +5,8 @@ import getUuid from 'node-uuid' import type { Uuid, Error, Request, Id, Label, DestroyOptions, SaveOptions } from './types' class Model { - @observable request: ?Request - @observable error: ?Error + @observable request: ?Request = null + @observable error: ?Error = null uuid: Uuid collection: Collection