We are having two components lets say Component A and Component B. Both have its own editConfig Listeners for afterinsert and afteredit to refresh the current page.
It is working fine when both the components are used individually, but there seems to be an issue when we include component A inside component B using data-sly-resource, after inserting the component the page is not refreshed and the component is non editable. We have to manually refresh the page and after that the component functions normally where both the components get enabled for editing. Has anyone faced the same issue? we are using the version 6.4 with service pack 2.(6.4.2).
You can try below:
In the cq:editConfig node of component A (which I understand to be the inner component), change Listener from REFRESH_SELF or REFRESH_PAGE to REFRESH_PARENT
This will force the parent component B to refresh when editing component A.