Skip to content

fix(fetchium): reflect symbol gets on entity proxy to surface prototype symbols - #23

Merged
pzuraq merged 1 commit into
mainfrom
inherit-entity-snapshot-from-base
May 12, 2026
Merged

fix(fetchium): reflect symbol gets on entity proxy to surface prototype symbols#23
pzuraq merged 1 commit into
mainfrom
inherit-entity-snapshot-from-base

Conversation

@pzuraq

@pzuraq pzuraq commented May 11, 2026

Copy link
Copy Markdown
Contributor

Fix entity reactivity across the React boundary. The entity proxy's get trap was short-circuiting all symbol-keyed property access to undefined, which blocked Signalium's registerCustomSnapshot from finding its handler (stored under a private symbol on the prototype). Symbol gets now resolve via Reflect.get against the entity prototype. With that in place, the per-class ensureEntitySnapshotRegistered bookkeeping is no longer needed — Signalium's prototype-chain resolution makes a single registration on the Entity base class apply to all user-defined entity subclasses.

…pe symbols

Fix entity reactivity across the React boundary. The entity proxy's
`get` trap was short-circuiting all symbol-keyed property access to
`undefined`, which blocked Signalium's `registerCustomSnapshot` from
finding its handler (stored under a private symbol on the prototype).
Symbol gets now resolve via `Reflect.get` against the entity prototype.
With that in place, the per-class `ensureEntitySnapshotRegistered`
bookkeeping is no longer needed — Signalium's prototype-chain resolution
makes a single registration on the `Entity` base class apply to all
user-defined entity subclasses.
@pzuraq
pzuraq merged commit 8db6a76 into main May 12, 2026
1 of 2 checks passed
@pzuraq
pzuraq deleted the inherit-entity-snapshot-from-base branch May 12, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant