In this meeting, the team discusses the issue of event handlers in their code. They talk about how the event handlers should be added after elements have been added to the page, in order to avoid duplicate event handlers and ensure they are applied to all relevant elements. They consider different ways to achieve this, including adding the event handlers after the page has loaded or after the data has finished loading. They also discuss adding a class to mark elements that have already had the event handler added to them. The team suggests copying and pasting the event handler code to ensure it runs for all elements added to the page, but note that this will only apply to elements added up until that point in time. They also discuss the importance of maintaining a clean code structure and avoiding duplicate code.
(Source: Office Hours 4/4 )
Join State Change Risk-Free