apache / incubator-weex

Apache Weex (Incubating)
https://weex.apache.org
Apache License 2.0
13.75k stars 1.82k forks source link

Weex SDK 0.29 dynamic component with any props will issue an error. #3332

Open simonwu-os opened 3 years ago

simonwu-os commented 3 years ago

Describe the bug

In sdk 0.29, the dynamic component can't have any props. If you set props it will issue such as error. "D/jsLog: TypeError: undefined is not an object (evaluating 'n.setClassList')__ERROR"

To Reproduce

see the source: http://dotwe.org/vue/6c9f656121f0e849d32a028426c57573

using weex playgroud with sdk 0.29, you will see the bug. The count is not increased as the time elapased. But it works in the sdk 0.26. If the dynamic component has no any props, it works. but if it has any props ,it failed.

Environment

Expected behavior

if it works, it will update the count value as the time elapsed. just as running the code in the web . when the dynamic component has any props, it issue the error: "D/jsLog: TypeError: undefined is not an object (evaluating 'n.setClassList')__ERROR" and the display is not correctly , such as computed props will not be called again. It seems the page is stopping.

Screenshots

You can using weex playgroud with sdk 0.29 to scan the QR Code in the page http://dotwe.org/vue/6c9f656121f0e849d32a028426c57573.