Skip to content

With-apollo: use reduxRootKey #980

@sedubois

Description

@sedubois

@ads1018 the Apollo doc is a bit confusing (https://github.com/apollographql/react-docs/issues/123) but I think apollo shouldn't be hard-coded, instead should use something along the lines of:

  const initialState = {
    ...state,
    [client.reduxRootKey]: {
      data: client.store.getState()[client.reduxRootKey].data
    }
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions