Skip to content

table component,use template api, when value is array :throw error: Maximum recursive updates exceeded. #3751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
greper opened this issue Mar 5, 2021 · 2 comments · Fixed by #3812
Closed
1 task done
Assignees

Comments

@greper
Copy link

greper commented Mar 5, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.0.1

Environment

vue 3.0.5

Reproduction link

Edit on CodeSandbox

Steps to reproduce

<template>
<a-table :data-source="dataRef">
<a-table-column key="tags" title="Tags" data-index="tags" />
</a-table>
</template>
<script>
import { defineComponent, ref, onMounted } from "vue";
const data = [
{
tags: ["123"], // 这里使用数组会报错,如果是字符串、Object、 number 都正常
},
];

export default defineComponent({
setup() {
const dataRef = ref([]);
onMounted(() => {
dataRef.value = data;
});
return {
dataRef,
};
},
});
</script>

What is expected?

当 tags: ["123"] 不要报错

What is actually happening?

tags: ["123"], // 这里使用数组会报错,如果是字符串、Object、 number 都正常

@github-actions github-actions bot changed the title table component,use template api, when value is array :throw error: Maximum recursive updates exceeded. table component,use template api, when value is array :throw error: Maximum recursive updates exceeded. Mar 5, 2021
@joker77877
Copy link

我遇到了同样的错误,什么时候修复

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants