From 6c23ef9c01a12e6bd35550746c1102f5ad01d125 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 27 Aug 2020 19:56:00 +0100 Subject: [PATCH] Flow --- .../react-server/src/ReactFlightServer.js | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/react-server/src/ReactFlightServer.js b/packages/react-server/src/ReactFlightServer.js index e8ef41ff6ac63..3c0dd82c68f02 100644 --- a/packages/react-server/src/ReactFlightServer.js +++ b/packages/react-server/src/ReactFlightServer.js @@ -438,14 +438,14 @@ const Dispatcher: DispatcherType = { useTransition(): [(callback: () => void) => void, boolean] { return [false, () => {}]; }, - readContext: unsupportedHook, - useContext: unsupportedHook, - useReducer: unsupportedHook, - useRef: unsupportedHook, - useState: unsupportedHook, - useLayoutEffect: unsupportedHook, - useImperativeHandle: unsupportedHook, - useEffect: unsupportedHook, - useOpaqueIdentifier: unsupportedHook, - useMutableSource: unsupportedHook, + readContext: (unsupportedHook: any), + useContext: (unsupportedHook: any), + useReducer: (unsupportedHook: any), + useRef: (unsupportedHook: any), + useState: (unsupportedHook: any), + useLayoutEffect: (unsupportedHook: any), + useImperativeHandle: (unsupportedHook: any), + useEffect: (unsupportedHook: any), + useOpaqueIdentifier: (unsupportedHook: any), + useMutableSource: (unsupportedHook: any), };