Closed aleksandrlat closed 3 years ago
Hi @aleksandrlat, in these two PRs I made the migrations of 2 example projects: https://github.com/relay-tools/relay-hooks/pull/133/files https://github.com/relay-tools/relay-hooks/pull/134/files
We can use this issue to add useful information to the migration.
Main change for us was useQuery
returns data
now instead of props
.
Also I could not migrate usePagination
yet because our fragment is not "refetchable". I will return back to it later.
Also I could not migrate usePagination yet because our fragment is not "refetchable". I will return back to it later.
Could you explain better?
I just migrated and the new usePagination hook is so much nicer! The @refetchable
directive is super powerful!
I close the issue as the most used version of relay-hooks is 4.2.0
@morrys I just noticed you released stable version 4. Great work! Thank you!
Do you have any advices for migrating from version 3.7.0 to version 4.0.0?
Or this is enough to know?
Thanks in advance!