From 1532c2efd8f81cef84eeca0e814a8724c484cfb6 Mon Sep 17 00:00:00 2001 From: Jordan Thomson Date: Wed, 11 Dec 2024 14:37:01 +1100 Subject: [PATCH] added todo --- packages/mobx-react-lite/src/ObserverComponent.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/mobx-react-lite/src/ObserverComponent.ts b/packages/mobx-react-lite/src/ObserverComponent.ts index b3875300b..59b9ff710 100644 --- a/packages/mobx-react-lite/src/ObserverComponent.ts +++ b/packages/mobx-react-lite/src/ObserverComponent.ts @@ -1,5 +1,7 @@ import { useObserver } from "./useObserver" +// TODO: this type could be improved in the next major release: +// type IObserverProps = { children: () => React.ReactNode, render?: never } | { children?: never, render: () => React.ReactNode } interface IObserverProps { children?(): React.ReactElement | null render?(): React.ReactElement | null