we are using the following command in a react component to add a custom database type to the editor on load
Code: Select all
window.Stimulsoft.Report.Dictionary.StiCustomDatabase.registerCustomDatabase(options)
Is there a way to clear the existing registrations or check if the custom db is already registered before running this command? Currently each time the component renders it adds another instance of the custom db and the list of databases in the UI just keeps growing.
I realise we could try and manage this with some state, but that still isn't ideal as it might be out of sync. It would be better if we could just reset the list before registering or query the editor in some way to check if it is registered
Cheers