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
The following simple setup
<DeckGL> {({viewState, width, height}) => (<> <Map viewState={viewState} width={width} height={height} /> </>)} </DeckGL>
produces a TypeScript error:
Type '({ viewState, width, height }: { viewState: any; width: any; height: any; }) => Element' is not assignable to type 'ReactNode'.
Passing a render callback as the React component's children is allowed and documented for JavaScript, so should be supported in TypeScript.
No response
The text was updated successfully, but these errors were encountered:
Fix published in v8.9.28
Sorry, something went wrong.
No branches or pull requests
Description
The following simple setup
produces a TypeScript error:
Flavors
Expected Behavior
Passing a render callback as the React component's children is allowed and documented for JavaScript, so should be supported in TypeScript.
Steps to Reproduce
Environment
Logs
No response
The text was updated successfully, but these errors were encountered: