Skip to content

Commit b3570b4

Browse files
committed
refactor(core): simplify _processProps by removing style prop handling
1 parent 264d4ad commit b3570b4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/core.node.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,15 +329,13 @@ export class BaseNode<E extends NodeElementType> implements NodeInstance<E> {
329329
* @method _processProps
330330
*/
331331
private _processProps(): FinalNodeProps {
332-
const { ref, key, children, css, props: _nativeProps = {}, disableEmotion, ...restRawProps } = this.rawProps
333-
const nativeProps = _nativeProps as Record<string, any>
332+
const { ref, key, children, css, props: nativeProps = {}, disableEmotion, ...restRawProps } = this.rawProps
334333

335334
// --- Fast Path Optimization ---
336335
if (Object.keys(restRawProps).length === 0 && !css) {
337336
return omitUndefined({
338337
ref,
339338
key,
340-
style: nativeProps.style,
341339
disableEmotion,
342340
nativeProps: omitUndefined(nativeProps),
343341
children: this._processChildren(children, disableEmotion),
@@ -380,7 +378,6 @@ export class BaseNode<E extends NodeElementType> implements NodeInstance<E> {
380378
ref,
381379
key,
382380
css: finalCssProps,
383-
style: nativeProps.style,
384381
...domProps,
385382
disableEmotion,
386383
nativeProps: omitUndefined(nativeProps),

0 commit comments

Comments
 (0)