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
Description
I've add a section to
control-pluginusing the hookuseRozeniteControlsPluginin myAppcomponent 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:
Additional context
I use i18next to handle locales in my app and the language switch logic is in a component separated from my
Appcomponent