props: (Data & VNodeProps) | null,
): (Data & VNodeProps) | null {
if (!props) return null
- return isProxy(props) ||
- isInternalObject(props) ||
- // handling for vapor props
- props.__vapor
- ? extend({}, props)
- : props
+ return isProxy(props) || isInternalObject(props) ? extend({}, props) : props
}
export function cloneVNode<T, U>(
export function getAttrFromRawProps(rawProps: RawProps, key: string): unknown {
if (key === '$') return
- if (key === '__vapor') return true
// need special merging behavior for class & style
const merged = key === 'class' || key === 'style' ? ([] as any[]) : undefined
const dynamicSources = rawProps.$