phy-lei / tarojs-plugin-solid

使用solidjs开发小程序🤖
MIT License
19 stars 0 forks source link

Destructure reactivity props will render error #4

Closed phy-lei closed 9 months ago

phy-lei commented 9 months ago

What platform are you using?

weapp

Describe the bug

import { View } from '@tarojs/components'
import { createSignal } from 'solid-js'

export default function Index() {
  const [obj] = createSignal({ styles: 'color: red' })
  return (
     <View {...obj()}>123</View>
  )
}

When i provide destructure reactivity props in tag, will render error

Console Logs

local.hasOwnProperty is not a function
    at h (.._src_h.ts:41)
    at createComponent (.._src_render.ts:57)

Participation

phy-lei commented 9 months ago

fix in 1.1.3