Causes UI to stop responding to state changes
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript, react
- 领域
- frontend
调研方向
Start by reproducing the reported interaction between a draggable container dialog, the MaterialTable, and the attachments state using the code sample in the issue. Trace whether adding an attachment reaches the state update and table data, and consider the issue resolved when the table responds to state changes while the dialog remains draggable.
由索引模型根据 Issue 内容生成。
描述
I have a MaterialTable that is bound to a state variable that contains an array. It works beautifully, until I make the container dialog draggable.
...
const [attachments, setAttachments] = useState([]);
...
const onOkAttachmentHandler = (file) => {
//add attachment
if (file !== null) {
let attachment = { ownerId: props.entityId, labId: props.labId, filename: file.name, file: file, archive: false };
setAttachments((previousAttachments) => {
let newList = [...previousAttachments, attachment];
return newList;
});
props.attachmentAdded(attachment);
}
setAddAttachmentDialogVisible(false);
}
...
<MaterialTable title="Attachments" data={attachments} ...
- 主要语言
- JavaScript
- 星标
- 9.3k
- 派生
- 1k
- 平均合并
- 3 天 8 小时
- 30 天内合并 PR
- 4
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
react-grid-layout/react-draggable 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 72/100
-
难度 4/5 3-5 天 新手友好度 25/100
react-grid-layout/react-draggable#784 · 4 条评论 · 2 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 45/100
react-grid-layout/react-draggable#782 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 25/100
react-grid-layout/react-draggable#781 · 1 条评论 · 2 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 25/100
react-grid-layout/react-draggable#780 · 8 条评论 ·
查看 react-grid-layout/react-draggable 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
parse-community/parse-server#10699 · 1 条评论 ·
维护者通常 1 天内回复
-
area: dashboard bug perceived difficulty: 3
难度 2/5 1-3 小时 新手友好度 88/100
Nitjsefnie-Harness-Commons/daedalus#1179 ·
维护者通常 1 天内回复
-
Aframe enhancement javascript
难度 1/5 1 小时以内 新手友好度 92/100
webarkit/Aframe-nft#17 ·
-
spec-feedback
难度 2/5 1-3 小时 新手友好度 75/100