diff --git a/packages/ui-api/src/Injected.tsx b/packages/ui-api/src/Injected.tsx index c3eddd47ac..d924d5a4dc 100644 --- a/packages/ui-api/src/Injected.tsx +++ b/packages/ui-api/src/Injected.tsx @@ -27,18 +27,19 @@ export { }; export function withInjected

(Component: React.ComponentType

): React.ComponentType> { - return (props: Subtract) => { - return ( - - {(injected) => ( - // @ts-ignore Something here with the props are going wonky - - )} - - ); + return class extends React.PureComponent> { + render () { + return ( + + {(injected) => ( + // @ts-ignore Something here with the props are going wonky + + )} + + ); + } }; }