You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#1055: Prevent overwriting getter-only properties in renderComponent (#1056)
* replace bundlesize with size-limit to remove iltorb
* use mjs for config files
* add eslint config for mjs
* Fix#1055: Prevent overwriting getter-only properties in renderComponent
The component branch of renderComponent was using Object.assign(lazyProps, rest)
which attempts to overwrite getter-only properties (like 'active'). This causes
'Cannot set property active' errors, especially with React 19.
Fix: Use the same safe property descriptor merging pattern already used in the
render and children branches - only add properties that don't conflict with
existing getters.
Tests: Added comprehensive coverage for getter-only property scenarios across
all render paths (component, render, children). Tests fail with buggy code,
pass with fix.
Fixes: #1055
---------
Co-authored-by: joshua-burbidge <joshdburbidge@gmail.com>
Co-authored-by: Erik Rasmussen <erik@mini.local>
0 commit comments