Fix endless re-rending of logs

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen committed 2022-01-10 16:54:03 +02:00
1 parent 4441d714dd
commit 48948c7286
23 files changed
+354 -161

No files matched your search

@@ -546,7 +546,10 @@ class NonInjectedItemListLayout<I extends ItemObject> extends React.Component<It
export function ItemListLayout<I extends ItemObject>(
props: ItemListLayoutProps<I>,
) {
return withInjectables<Dependencies, ItemListLayoutProps<I>>(
const InjectedItemListLayout = withInjectables<
Dependencies,
ItemListLayoutProps<I>
>(
NonInjectedItemListLayout,
{
@@ -556,5 +559,7 @@ export function ItemListLayout<I extends ItemObject>(
...props,
}),
},
)(props);
);
return <InjectedItemListLayout {...props} />;
}