Replace view but keep ID

I’m using webix.ui to replace a certain view I have with another that I’m creating in runtime and I wish to keep the id. Something like:

webix.ui({id:parentpanel.config.id, config}, parentpanel.getParentView(), parentpanel);

If I do this, I get a ‘non unique view id’ error. I’ve tried changing the id in runtime but I can’t seem to figure out how (tried using view.define and view.config.id but those don’t seem to work).

Edit: I’ve also tried extending the newview from the parent, with the added configurations but it doesn’t work

Unfortunately it is not possible for now.
I think it will be fixed in one of the next updates, but I can’t provide any date.

For now you can replace UI with temp object, and after that temp object can be replaced back to ui with ID in question.