Closed thyb closed 2 years ago
Hello,
There is a Typescript definition issue when using: const { request } = useContext(). We get the following error:
const { request } = useContext()
This expression is not callable. Type 'Omit<SharedContext, "request" | "response">' has no call signatures.
This small PR fix this error by making useContext callable.
useContext
Hello,
There is a Typescript definition issue when using:
const { request } = useContext()
. We get the following error:This small PR fix this error by making
useContext
callable.