relay-tools / relay-hooks

Use Relay as React hooks
https://relay-tools.github.io/relay-hooks/docs/relay-hooks.html
MIT License
542 stars 56 forks source link

usePagination does't send the object ID #263

Closed eMerzh closed 10 months ago

eMerzh commented 1 year ago

Hello, sorry it will probably be a broken issue like noone like, but i have to ask 😅 since the update to relay 16 I tend to notice a "lot" of usePagination loadNext() that trigger a refetch but without giving the object id for some reason ... thus the query get's rejected by the server because it missed the required id ofc

i fail to understand what's going on ... is there someone experiencing the same thing? or has someone an explaination?

morrys commented 1 year ago

hi @eMerzh, I'm working on relay v16 support, https://github.com/relay-tools/relay-hooks/pull/256

With the new release they have changed how the id is retrieved during refetch

eMerzh commented 1 year ago

oh ok, that might explain that .. thanks 👍

morrys commented 10 months ago

released with relay-hooks v9.0.0