mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 17:58:43 -05:00
fix(nucleus): track cell portals
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user