This PR is related to a previous PR, where I added the following two changes:
Removed the useMemo() calls as I found out that it is unnecessarily used and the underlying code is getting executed all the time the component is re-executed as we inject an object as it dependency. I might be incorrect on this so please let me know if we need a discussion over this.
Modified the id to make it unique for all the groups in the expandable section.
Description
This PR is related to a previous PR, where I added the following two changes: