Skip to content

Commit 6b7b412

Browse files
authoredSep 22, 2021
feat: simplify component structure by multiple refactors (#179)
BREAKING CHANGE: Simplified definition structure with support only for tagged component, implicit `property` and `render` factories, removed support for defining elements in templates
1 parent de96721 commit 6b7b412

20 files changed

+1074
-1751
lines changed
 

‎docs/store/usage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ The model instance can be set by the property assertion (passing the id or a mod
202202
const el = document.createElement("my-element");
203203
el.user = "2";
204204

205-
// set by model reference
205+
// set by model reference of the same model definition
206206
const someUser = store.get(User, "3");
207207
el.user = someUser;
208208

‎src/children.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ export default function children(
2222
typeof hybridsOrFn === "function"
2323
? hybridsOrFn
2424
: hybrids => hybrids === hybridsOrFn;
25+
2526
return {
26-
get(host) {
27-
return walk(host, fn, options);
28-
},
27+
value: host => walk(host, fn, options),
2928
connect(host, key, invalidate) {
3029
const observer = new MutationObserver(invalidate);
3130

0 commit comments

Comments
 (0)
Please sign in to comment.