fix(nucleus): track cell portals

This commit is contained in:
Miralem Drek
2019-09-26 16:37:50 +02:00
parent 07b2544e78
commit d28c4eca3b

View File

@@ -6,6 +6,7 @@ export default function boot({ element, model, api, nebulaContext, onInitial })
const { root } = nebulaContext;
const portal = ReactDOM.createPortal(<Cell api={api} model={model} onInitial={onInitial} />, element);
portal.key = model.id; // TODO - handle same model being booted again
const unmount = () => {
root.remove(portal);