Error when trying to load more with Relay v7 (Support usePagination with Relay v7)
See original GitHub issueHi 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:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@morrys sorry for taking this long to reply, I was away.
I can confirm that it’s working in a real application.
Thank you!
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 😃