We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
Using usePusher in a React 18 TypeScript project throws the error:
Property 'children' does not exist on type 'IntrinsicAttributes & PusherProviderProps'.
This is because React 18 Requires children?: React.ReactNode to be defined in the component props which is missing here.
children?: React.ReactNode
The text was updated successfully, but these errors were encountered:
Try this
import type { FC, PropsWithChildren } from 'react' import { PusherProvider as $PusherProvider, type PusherProviderProps, } from '@harelpls/use-pusher' const PusherProvider = $PusherProvider as FC< PropsWithChildren<PusherProviderProps> >
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Using usePusher in a React 18 TypeScript project throws the error:
This is because React 18 Requires
children?: React.ReactNode
to be defined in the component props which is missing here.The text was updated successfully, but these errors were encountered: