Skip to content

Add the possibility to extend sections for controls-plugin #284

@Cancercookie

Description

@Cancercookie

Description

I've add a section to control-plugin using the hook useRozeniteControlsPlugin in my App component and then done the same thing on another component because it had sense make the control local in that context. The result is that my previous configuration was overridden.

Suggested solution

I would love to have smth like:

useRozeniteControlsPlugin((prevConfig) => ({
   sections: [
      ...prevConfig.sections,
      createSection(newSection)
   ]
})

Additional context

I use i18next to handle locales in my app and the language switch logic is in a component separated from my App component

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions