Skip to content
New issue

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

[react-apollo] Extract QueryComponentProps #2820

Closed
wants to merge 1 commit into from

Commits on Oct 11, 2018

  1. [react-apollo] Extract QueryComponentProps

    As a user of `react-apollo`, it's a common use case to want to create your own higher-order `Query` component to specify default options, additional behaviours, etc.
    
    In order to type that higher order component, we need to export the Props type of the `react-apollo` `Query` component, so that a consumer of the library can use it to define their HoC props type by extending it.
    
    This commit extracts and exports a generic `QueryComponentProps<TData, TVariables>` type. It has no functional changes.
    jevakallio committed Oct 11, 2018
    Configuration menu
    Copy the full SHA
    d0ba75e View commit details
    Browse the repository at this point in the history