frontend-app-api: key root elements

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-09-22 13:46:12 +02:00
parent 9d03dfe5e3
commit deacb98053
@@ -282,7 +282,11 @@ export function createApp(options: {
const appContext = createLegacyAppContext(allPlugins);
const rootElements = rootInstances
.map(e => e.getData(coreExtensionData.reactElement))
.map(e => (
<React.Fragment key={e.id}>
{e.getData(coreExtensionData.reactElement)}
</React.Fragment>
))
.filter((x): x is JSX.Element => !!x);
const App = () => (