Skip to content

WithApolloClient types client as optional #7899

Closed
@billsaysthis

Description

@billsaysthis

Intended outcome:
Trying to migrate to V3 and unlike in V2 the client prop is set as optional, this creates issues in our existing codebase because everywhere I use client is flagged as potentially undefined. I know this is deprecated but for migration purposes I need to use this for the time being.

Actual outcome:
This is a blocker for us, not sure what other actual outcome I can add here.

How to reproduce the issue:
From the types:

export declare type WithApolloClient<P> = P & {
    client?: ApolloClient<any>;
};

Versions
3.3.12

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions