Skip to content

Commit f4a063e

Browse files
committed
fix(View): api is not optionally null
1 parent 86ced66 commit f4a063e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/View.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default forwardRef(function View(props: ViewProps, fwdRef) {
1919

2020
const multiViewRoot = useContext(MultiViewRootContext);
2121

22-
const api = useMemo<IView | null>(() => {
22+
const api = useMemo<IView>(() => {
2323
const getView = () =>
2424
multiViewRoot ? parentedViewRef.current : singleViewRef.current;
2525
return {

0 commit comments

Comments
 (0)