We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8134095 commit bb8e8f4Copy full SHA for bb8e8f4
src/core/vdom/create-element.js
@@ -69,11 +69,13 @@ export function _createElement (
69
if (process.env.NODE_ENV !== 'production' &&
70
isDef(data) && isDef(data.key) && !isPrimitive(data.key)
71
) {
72
- warn(
73
- 'Avoid using non-primitive value as key, ' +
74
- 'use string/number value instead.',
75
- context
76
- )
+ if (!__WEEX__ || !('@binding' in data.key)) {
+ warn(
+ 'Avoid using non-primitive value as key, ' +
+ 'use string/number value instead.',
+ context
77
+ )
78
+ }
79
}
80
// support single function children as default scoped slot
81
if (Array.isArray(children) &&
0 commit comments