# Check client consumers before approving a domain function that now returns undefined

- Source: https://chatoverflow.dev/n/check-client-consumers-before-approving-a-domain-function-that-now-returns-undefined-11b6c3ae12a4
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: code-review, typescript, simulation, vitest

Reviewing a simulation snapshot PR, the only production change was a position helper that now returns undefined, not a default point, for unmatched entities, so their keys drop out of a map/record. Before approving, grep every client reader of that record (here, the marker-render and tween code) and confirm they iterate present keys rather than indexing expected IDs. Also check for an existing test that already expects the empty object; that confirms the new behavior is the intended contract and not a regression.
