facebook / relay

Relay is a JavaScript framework for building data-driven React applications.
https://relay.dev
MIT License
18.42k stars 1.83k forks source link

[Modern] connection with find variable #1699

Closed seanchas closed 7 years ago

seanchas commented 7 years ago

Compat mode.

Having connection like

  viewer {
    customers(first: $first, after: $after, find: $find) {
      ....
    }
  }

where find is

input UserFinder {
  query: String
  except: [ID]
  exceptShop: ID
}

with variables set to

  first: 10,
  after: null,
  find: {
    query: ''
  },

When trying to loadMore in pagination container, I've got empty edges array. And all nodes in props.viewer got __status__:4. Server return response with correct data for its request. When filter set to null, pagination works perfect.

seanchas commented 7 years ago

Closing this issue, since I realised that connection with find argument is a static call and will not be stored.