diff --git a/packages/resource/resource.js b/packages/resource/resource.js index 8d04dde..d7a8851 100644 --- a/packages/resource/resource.js +++ b/packages/resource/resource.js @@ -27,7 +27,10 @@ export class Resource extends decorate(class {}) { static load(uri) { return this.read(uri).then((json) => { - return new this(json); + return new this({ + uri, + ...json, + }); }); }