Skip to content

refactor(rsc): simplify proxy get access#1002

Merged
hi-ogawa merged 1 commit intomainfrom
12-04-fix_rsc_simplify_proxy_get_access
Dec 4, 2025
Merged

refactor(rsc): simplify proxy get access#1002
hi-ogawa merged 1 commit intomainfrom
12-04-fix_rsc_simplify_proxy_get_access

Conversation

@hi-ogawa
Copy link
Copy Markdown
Contributor

@hi-ogawa hi-ogawa commented Dec 4, 2025

Description

React 19.2.1 checks hasOwnProperty first and triggers getOwnPropertyDescriptor trap. This then mutates target[name] own property, so get handler doesn't need to be explicitly implemented to return client reference.

@hi-ogawa hi-ogawa marked this pull request as ready for review December 4, 2025 03:26
@hi-ogawa hi-ogawa merged commit cc77583 into main Dec 4, 2025
20 checks passed
@hi-ogawa hi-ogawa deleted the 12-04-fix_rsc_simplify_proxy_get_access branch December 4, 2025 03:27
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