The code is as follows
class ComposerForm extends BaseForm {
  constructor(formsObject, options) {
    super({
      ...options,
      setup: {},
    });
    this.formsObject = { ...formsObject };
  }
  ..
}
Now i have a new form
class PreferencesForm extends ComposerForm {
  constructor(company, options = {}) {
    super(
      {
        upids: new UpidsForm(company).initialize(),
        featureSettings: new FeatureSettingsForm(company)
      },
      options
    );
  }
}
When initialising the FeatureSettingsForm, i need to pass the Preference form along with the company object
Something like
  {
    featureSettings: new FeatureSettingsForm(company, {prefForm: this})
  },
so that i can access the preference form inside featureSettings form.
But this cannot be done since this cannot be accessed inside the super method.
Any idea on how to achieve this?
 
    