feat(search-react): context provider accepts null children
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
@@ -36,7 +36,7 @@ export type SearchResultContextProps = {
|
||||
/**
|
||||
* A child function that receives an asynchronous result set and returns a react element.
|
||||
*/
|
||||
children: (state: AsyncState<SearchResultSet>) => JSX.Element;
|
||||
children: (state: AsyncState<SearchResultSet>) => JSX.Element | null;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user