Commit 7d13064
authored
fix(bindx): support direct field access on PlaceholderHandle proxy (#7)
PlaceholderHandle.wrapProxy used createAliasProxy which only strips the
$ prefix but does not delegate unknown properties to target.fields.
This caused entity.fieldName to return undefined for placeholder
entities (e.g. when creating new entities via HasOne).
Switch to createHandleProxy so that direct field access (entity.name)
resolves through the fields proxy, matching EntityHandle behavior.
Also transition disconnected relations to 'creating' state when
SET_PLACEHOLDER_DATA is dispatched, ensuring placeholder data is
properly tracked for new entities.1 parent 40de784 commit 7d13064
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
268 | 272 | | |
269 | 273 | | |
270 | 274 | | |
271 | 275 | | |
272 | | - | |
| 276 | + | |
273 | 277 | | |
274 | 278 | | |
275 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
0 commit comments