You need to sign in to do that
Don't have an account?
Nitesh Jain 35
Lightning data table does not re-render in LWC
Hello All,
Need your help in acheiving one requirement. I have list of accounts on one components, once we click on the Account, It fires an event ( Passing an AccountId). The event is received by some other components (No Parent-Child Relationship), the JS Connectec call back methods, Registers an event and then through wire method(Passing an AccountId received by Event), fethcing all the contacts, These contacts are then renders through Lightning data table ( Till this time, everything works as expected).
The problem occurs when i tries to add the empty row in Lightning data table, I can see in logs that List is being added but it does not re render the lightning data table and blank row is not added)
Need your help in acheiving one requirement. I have list of accounts on one components, once we click on the Account, It fires an event ( Passing an AccountId). The event is received by some other components (No Parent-Child Relationship), the JS Connectec call back methods, Registers an event and then through wire method(Passing an AccountId received by Event), fethcing all the contacts, These contacts are then renders through Lightning data table ( Till this time, everything works as expected).
The problem occurs when i tries to add the empty row in Lightning data table, I can see in logs that List is being added but it does not re render the lightning data table and blank row is not added)
However it seems like the its always going to add the empty row at top Account and not getting the conext of current event .... For an example
When I click the account 'AA-Nitesh Account Test 2'- It renders the contact list correct but when click on 'Add Row' it seems it always getting added to account 'AAAAA 1111 2'
All Answers
However it seems like the its always going to add the empty row at top Account and not getting the conext of current event .... For an example
When I click the account 'AA-Nitesh Account Test 2'- It renders the contact list correct but when click on 'Add Row' it seems it always getting added to account 'AAAAA 1111 2'
Whatsapp status video (https://newwhatsappstatusvideo.com/) new whatsapp video (https://newwhatsappstatusvideo.com/love-whatsapp-status-video/)
Perfect .. Thank you .. It was really a silly mistake :)