facebook / facebook/relay

[Modern] Adding edges to a filtered (sorted) connection

Abierto
#2,221 3 comentarios 5 reacciones 0 asignados Ver en GitHub
enhancement wontfix
Lenguaje dominante
Rust
Estrellas
19k
Forks
1.9k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Let's say I have a refetchContainer containing the following:

`tasks(
first: 10000
limit: $limit
page: $page
filterBy: $filterBy
orderBy: $orderBy
) @connection(
key: "Tasks_tasks"
filters: ["limit", "page", "filterBy", "orderBy"]
) {
...
}
`

Then I perform a mutation that adds a `task` and I'm able to get the `connection` in my shared updater but how can I insert the new edge into the correct position since the `insertEdge*` methods only append to beginning/end? What's the standard practice here?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.