Delete unsupported hooks
This commit is contained in:
parent
74a9cd4bb8
commit
aa5d40a625
@ -68,51 +68,3 @@ useCallback f deps = Hook $ do
|
||||
depsArray <- lift $ toJSVal =<< sequence someDeps
|
||||
pure [depsArray]
|
||||
lift $ (react # t "useCallback") $ [pToJSVal cb] <> depsArg
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- Not yet supported
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
type DispatchFunction a = a -> Effect ()
|
||||
|
||||
type Reducer s a = s -> a -> s
|
||||
|
||||
useContext :: Context a -> Hook a
|
||||
useContext = undefined
|
||||
|
||||
data Context a
|
||||
|
||||
createContext :: a -> IO (Context a)
|
||||
createContext = undefined
|
||||
|
||||
provider :: Context a -> a -> Render b -> Render b
|
||||
provider = undefined
|
||||
|
||||
data Ref a
|
||||
|
||||
forwardRef :: (props -> Ref refVal -> Hook (Render ())) -> Component props refVal
|
||||
forwardRef = undefined
|
||||
|
||||
useImperativeHandle :: Ref a -> Effect a -> Maybe [JSVal] -> Hook ()
|
||||
useImperativeHandle = undefined
|
||||
|
||||
useReducer :: Reducer s a -> a -> Maybe (a -> a) -> Hook (a, DispatchFunction a)
|
||||
useReducer = undefined
|
||||
|
||||
useTransition :: Hook (Bool, Effect () -> Effect ())
|
||||
useTransition = undefined
|
||||
|
||||
useDeferredValue :: a -> Hook a
|
||||
useDeferredValue = undefined
|
||||
|
||||
useDebugValue :: a -> Maybe (a -> b) -> Hook ()
|
||||
useDebugValue = undefined
|
||||
|
||||
useId :: Hook Text
|
||||
useId = undefined
|
||||
|
||||
useSyncExternalStore :: (IO () -> IO (IO ())) -> IO a -> Maybe (IO a) -> Hook ()
|
||||
useSyncExternalStore = undefined
|
||||
|
||||
newtype Effect a = Effect { unEffect :: JSM a }
|
||||
deriving (Functor, Applicative, Monad)
|
||||
|
Loading…
Reference in New Issue
Block a user