-
Notifications
You must be signed in to change notification settings - Fork 373
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
Fix memory leak issue #2243
Fix memory leak issue #2243
Conversation
✅ Deploy Preview for jsonforms-examples ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hi @lucas-koehler please review and let me know if you have any suggestions or any changes required thanks |
Hi @howdyAnkit thanks for your contribution ❤️ Please fix the merge conflict so we can run the full CI :) |
Sorry missed it @lucas-koehler have pushed again fixing merge conflcts and it's again open for review. thanks for checking and mentioning |
I'm not familiar with pipes. Can you quickly explain for the change when and how now a rerender is triggered? Will the table rerender when seemingly unrelated changes happen? For example a property outside the table is changed and a |
Hi @sdirix thanks for reviewing. Can you quickly explain for the change when and how now a re-render is triggered? The changes should be triggered normally as compared to previously the function was getting triggered aggressively because the function was being called on the html itself. but now since I have changed with Pipes. Pipes by themselves do not trigger re-renders or DOM updates. They perform transformations based on input data and are primarily used for display purposes and perform transformations on data without triggering re-renders. Considering previous example where the function was called directly and it was detecting the changes on hover as-well instead now if there's any new change it will definitely trigger a re-render it's just that it will be triggered once and the no of time's you interact or the no of time it's been called. I'd still like to see if you have any examples that could possibly be a better way to validate the code instead of assumptions. |
Hi @lucas-koehler and @sdirix any updates on the above. any inputs required from my end? |
Hi @howdyAnkit, we were busy with the 3.2 release in the last two weeks, therefore the late reply. From what you explained, I think the approach is sound. This is the scenario to be tested: JSON Schema
Ui Schema
The table should still be enabled or disabled based on the enabled property. I would also recommend to rebase the PR on the latest state of master to potentially fix the seemingly unrelated test errors. |
Hi @sdirix thanks for replying and getting back PFA working repo to validate the schema's given above (https://github.com/howdyAnkit/fix-2242). Everything looks working fine to me. i'll rebase the branch and push again and if any other changes required please let me know. Thanks Ankit |
Also I have added a last commit to include the pipe in module folder to make it work or else it will throw errors please do let me know if it needs to be added few other places aswell. Thanks for checking : ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check the failing Angular Material test cases?
The error message starts with
Failed: NG0302: The pipe 'getProps' could not be found in the 'TableRenderer' component. Verify that it is declared or imported in this module. Find more at https://angular.io/errors/NG0302
Hi @sdirix @lucas-koehler thanks for reviewing. did it passed this time? |
I can still see it failing 💔. the only problem in my view was the missing import in module i'd like to hear you're suggestion if you have. |
Thanks @sdirix for adding the imports and fixing this issue ❤️. |
Fixes issue for #2242