You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.
For anyone else running into this, here's a workaound:
I've redefined the graphql decorator with the return type as any. It simply invokes the original graphql decorator.
import {graphql as __graphql, OperationOption} from 'react-apollo';
export function graphql<TProps, TResult>(gqlQuery, operationOptions?: OperationOption<TProps, TResult>): any {
return __graphql(gqlQuery, operationOptions);
}Import the @graphql decorator you defined and the TS compiler will no longer complain about the render() method having an incompatible type.
This issue has been automatically labled because it has not had recent activity. If you have not received a response from anyone, please mention the repository maintainer (most likely @jbaxleyiii). It will be closed if no further activity occurs. Thank you for your contributions to React Apollo!
Intended outcome:
If add a any method except render() typescript begins to resent
Actual outcome:
Only render() method

With any method

And error occurs when render method return type only JSX.Element with out "false"

React works normally in all cases
How to reproduce the issue:
Repair typescript types
Version
The text was updated successfully, but these errors were encountered: