Module duplicating inside another module

Hi everyone,

I have a module called Chat, which uses a Custom Component that I implemented.
The Chat module is used inside other modules—for example, one called Customer Manager.

In production, the Chat module is sometimes duplicated when used inside the Customer Manager module.
However, in edit mode, it appears only once, as expected.

Has anyone experienced something similar or knows what might be causing this issue? Any help would be greatly appreciated!

Here’s how it looks:

Thank you in advance!

Hi @murilo_picinato,

Apologies for the issue. From what I have found from reading around, having nested modules is unfortunately very fraught with issues bubbling up :sweat:

My gut intuition is that if you move things up one level of nesting and only have a single module then things should work as expected :sweat_smile:

1 Like

Hey @Jack_T,

Got it.
I'll give that approach a try.

Thanks again for the help!

Best regards.

1 Like

Hi @murilo_picinato,

Just wanted to circle back and check if flattening things out and removing that extra layer of modules was able to fix this bug!

Modules are pretty old and will soon be getting a major version 2.0 lift to get rid of some known bugs such as this one. I would highly recommend not nesting modules and keeping them simple and used for boilerplate groups of components like headers and footers that you will be duplicating often :raised_hands:

Hi @Jack_T

Sorry, I haven’t had enough time to try that solution yet.

Since it’s not urgent, it’s been pushed further down the backlog.
But I really appreciate the heads-up.

Looking forward to the update.

Thanks again,
Best regards,

1 Like