[Solved] Can I access container's `state` in Apollo's options?


I could have sworn that at one time Apollo would give you both the props and the state of the container that Apollo wraps. If so is it still possible to get the state?

I realize I could make yet another component one level higher, keep state in that and then pass down as props but that seems like a bit overkill.


const query = gql`
  query foo($filter: InputInterestFilter!) {
    interests(interest_list_id: $interest_list_id, filter: $filter) {

const ContainerWithData = graphql(query, {options: (props) => {
  return {
    variables: {
      interest_list_id: props.params.id,
      filter: processFilterParams(),