-
Notifications
You must be signed in to change notification settings - Fork 1k
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
PR4814: fix deeply nested replace on row edit #4818
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
@melloware can't add you as a reviewer but let me know if this is sufficient for a fix. |
Hi @bu3alwa! Thanks for such a quick response! Unfortunately, I receive an error "Uncaught TypeError: "somePropertyName" is read-only". It traces to this new mutation method you've added. |
Thanks for testing it. What I tested yesterday didn't have anything that's read-only. I am wondering what is read-only that is causing this issue. Are you using the same example from the reproducer link or a different one? |
No, I'm using it in my project as a yalc linked library. As far as I understand it can't perform a mutation on currentData in |
Thanks I'll take a look soon. The |
ok so I am having a hard time reproducing the error you got. Can you provide and example of how you are passing the data to the column? The example you had before works well and it sound like s read only property in the object is being sent to the prop. |
Hi @bu3alwa! Thank you for the feedback. Let me double-check my data then. |
2c2551f
to
09b4123
Compare
ok, tested and its working with the new implementation. One thing to note that should be a separate issue when you are on the price in row edit mode example. Typing a number triggers twice when you type. There is some useEffect somewhere that's triggering twice on strict mode. Should probably be investigated on a separate ticket. My suspicion is its in InputNumber. |
eff5831
to
42740f9
Compare
Hi @bu3alwa! I checked one more time and the problem with read-only is indeed on my side. I found also another tricky thing. When I create Columns from array of arrays, the method |
Maybe it is connected with the bug you mentioned earlier about useEffect in InputNumber |
I've tried also to do it manually running this app locally, not my own. If you add several Columns which should edit the same object |
Sorry, one more condition for an error. It happens when you have custom |
To be clear are we talking about a new issue or is this part of the same issue? And if you could please provide a example link so I can understand the problem better and use it to test locally. |
I really can't tell for sure if it connected to this problem. For me it is, since I cannot perform update if the structure of the table consist of several rows which are getting data from nested object. Could you please tell me how to create a demo example using the PR code? I mean is it even possible to use codesandbox or smth similar? |
I am not sure with a specific PR but I just need it as an example code and I can copy and paste it to my local build. |
Hi @bu3alwa! I figured the problem, it is on my side, but I still would like to mention it. I'm using roweditdoc.js file for this. This code is for handling editing rows change. The reason for that is to use additional logic onRowEditChange. Number editor: These are the Columns : I'm using |
Hi @bu3alwa! Could you please tell me when this fix can be expected to be released? |
@Tsareff I'm not an actual maintainer on here so can't give you any estimates |
Is this fix final I thought you guys were working out more scenarios? |
@melloware I think the other issues were resolved on @Tsareff end, he can confirm. My PR should be ready to go from my end |
Hi @bu3alwa @melloware! Yes, this fix is working, all other things on my side. Maybe I'm looking at a wrong place, but I don't see the new version. Could you please tell me when can I expect to use it? |
Fix #4814 issue with deeply nested object
@Tsareff feel free to test it