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
{{ message }}
Repository navigation
@rx.memo with rx.RestProp doesn't handle CSS props correctly #6599
Describe the bug
The rx.RestProp param does no additional processing of CSS props, so if any are passed through to a memo function, they end up as normal props, which are unrecognized on their target. There is no processing to distinguish them as style props.
i think we should move our handling of CSS into JS
so what would that look like? basically our own jsx wrapper that extracts the known CSS props and merges them into the css object? How will that layer be able to know whether a prop should be CSS or whether the target component actually shadows a valid CSS property name and the prop should instead be passed normally?
How will that layer be able to know whether a prop should be CSS or whether the target component actually shadows a valid CSS property name and the prop should instead be passed normally?
I guess that part is harder, but it always irked me how we do the snake_case to kebab-case in Python, and how easy it is to write code that passes right through that
Activity
linear-code commentedon Jun 3, 2026
ENG-9676
adhami3310 commentedon Jun 3, 2026
i think we should move our handling of CSS into JS, in which case this class of bugs is much harder to hit
masenf commentedon Jun 3, 2026
so what would that look like? basically our own
jsxwrapper that extracts the known CSS props and merges them into thecssobject? How will that layer be able to know whether a prop should be CSS or whether the target component actually shadows a valid CSS property name and the prop should instead be passed normally?adhami3310 commentedon Jun 4, 2026
I guess that part is harder, but it always irked me how we do the snake_case to kebab-case in Python, and how easy it is to write code that passes right through that