Custom Component State does not update in module

We’ve built a custom component and moved it into a module. The newComment state updates correctly — confirmed via linter and logs — but the callback that should receive the updated newComment is invoked with an empty value.

We tested the same component in a non-module Retool app, and it works as expected. This issue seems to occur only when the component is used inside a module.

Has anyone else encountered this behavior? Any ideas on why the value isn't passed correctly in the module context?

@OLR,
I would be happy to take a look at this.
Are you on Retool Cloud or are you self-hosted? Can you please send me:

  1. the exported json file from the parent app that has the module inside it
  2. the exported json file from the module
  3. the exported json file from the parent app with the component that is not a module (the one that is working properly as a non-module)

You can download your json files like this, by clicking on the three dots to the right of your app or module:

Thanks!