Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

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

Open
simonwu-os opened this issue Feb 8, 2021 · 0 comments
Open

Comments

@simonwu-os
Copy link

simonwu-os commented Feb 8, 2021

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

  • Device: Any android phone.
  • OS: Android 9 or Android 10.
  • Version 0.29
  • Build from source [e.g. yes/no] yes

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant