Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Render callback should be typed with TData #1519

Merged
merged 5 commits into from
Jan 5, 2018

Conversation

rosskevin
Copy link
Contributor

Missing parameterized type propagation in Query component

Copy link
Contributor

@excitement-engineer excitement-engineer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment. If it is fixed then it is good for merging.

@@ -70,7 +70,7 @@ export interface QueryState<TData = any> {
}

class Query<TData = any> extends React.Component<
QueryProps,
QueryProps<TData>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also update the type definition of the props in the constructor.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

@rosskevin rosskevin merged commit 20dd0c2 into apollographql:master Jan 5, 2018
@rosskevin rosskevin deleted the query-data-type-fix branch January 5, 2018 21:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants