You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with usePreloadedQuery to me is that it gets queryRef out of nowhere in all examples. They say I should handle it in routing, but I don't think react-router allows to do this.
First of all, thank you for your example, it helped me to get at least something from relay (as docs are sometimes controversial and not clear).
I found that in the migration guide they say that
useLazyLoadQuery
can be used.However, in the
useLazyLoadQuery
description, they sayInstead, prefer usePreloadedQuery.
https://relay.dev/docs/api-reference/use-lazy-load-query/#uselazyloadquery
The problem with
usePreloadedQuery
to me is that it gets queryRef out of nowhere in all examples. They say I should handle it in routing, but I don't think react-router allows to do this.Although it could be done like this
I am not sure whether it is better at all. Could anyone suggest a solution of integrating it with react-router and use preloaded query?
The text was updated successfully, but these errors were encountered: