question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when trying to load more with Relay v7 (Support usePagination with Relay v7)

See original GitHub issue

Hi Lorenzo, hope you have been doing well!

I recently upgraded from relay 6 to 7.10 and relay-hooks from 1.3.0 to 2.0.0-rc.4

Without changing any code, I now get the following error when trying to load more items using FragmentPagination:

Uncaught TypeError: relay_runtime_1.getFragmentOwners is not a function
    at FragmentPagination.push../node_modules/relay-hooks/lib/FragmentPagination.js.FragmentPagination._fetchPage (FragmentPagination.js:236)
    at FragmentPagination.push../node_modules/relay-hooks/lib/FragmentPagination.js.FragmentPagination.loadMore (FragmentPagination.js:224)
    at useOssFragment.js:96
...

I suppose getFragmentOwners function is no longer supported by relay runtime?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
webicancommented, Nov 26, 2019

@morrys sorry for taking this long to reply, I was away.

I can confirm that it’s working in a real application.

Thank you!

0reactions
morryscommented, Nov 24, 2019

hi @jazblueful, released version 2.0.0 of relay-hooks https://github.com/relay-tools/relay-hooks/releases/tag/v2.0.0

For the moment I consider this issue closed, if you find other problems you can open it again 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

usePaginationFragment - Relay
A pagination query no longer needs to be specified in this api, since it will be automatically generated by Relay by using a...
Read more >
relayjs - Relay Modern: How to display a loading indicator on ...
I have a component based on a PaginationContainer and I want to display a loading indicator when paging in additional data (loadMore() is...
Read more >
react-relay-offline: Versions - Openbase
support relay v13 https://github.com/morrys/react-relay-offline/pull/121 ... of the single failed mutation in the store (relay v6 & v7 no longer allows such ...
Read more >
Administration Guide - FortiSandbox 4.2.3 - AWS
For more information, see the FortiSandbox Release Notes or contact ... by checking for a trusted verdict in FortiGates running FOS v7.2.
Read more >
uncaught typeerror: undefined is not iterable (cannot read ...
I was using react context api but when I added this code const [{}, dispatch] = useStateValue(); there was the error "Uncaught TypeError:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found