diff --git a/package.json b/package.json index 68819b6..f5b69cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mobx-rest", - "version": "2.0.2", + "version": "2.0.3", "description": "REST conventions for mobx.", "repository": { "type": "git", diff --git a/src/Collection.js b/src/Collection.js index a147db8..b5597ce 100644 --- a/src/Collection.js +++ b/src/Collection.js @@ -19,7 +19,7 @@ import type { Label, CreateOptions, SetOptions, Id } from './types' export default class Collection { @observable request: ?Request = null @observable error: ?ErrorObject = null - models: IObservableArray = observable.shallowArray([]) + @observable models: IObservableArray = [] constructor (data: Array<{[key: string]: any}> = []) { this.set(data)