()
| 212 | }; |
| 213 | |
| 214 | const scheduleFlush = () => { |
| 215 | if (flushHandle) { |
| 216 | return; |
| 217 | } |
| 218 | |
| 219 | flushHandle = setTimeout(flush, BATCH_WINDOW); |
| 220 | }; |
| 221 | |
| 222 | // Queries opt into this instead of `gqlClient.request` so several secondary |
| 223 | // requests fired in the same tick leave as one POST. Mutations never do. |