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
Hello, I was wondering if someone could review this. I have here a custom hook that takes a directive variable and applies the conditional fetching logic to react query.
Previously, i created two separate useInfiniteQuery now its only one function with more reusable design. I was wondering if this is a right approach or should i leave it separately like i've done before. One limitation i see here is that when user is on the one of the directive view, the other becomes inactive (ie post-fresh, feed-inactive and vice versa). I suppose this limits the ability to refetch remotely from other component as there are no observables. is this approach sufficient for most features? does any one know if there is more obvious issue of this pattern? Much appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I was wondering if someone could review this. I have here a custom hook that takes a directive variable and applies the conditional fetching logic to react query.
Previously, i created two separate useInfiniteQuery now its only one function with more reusable design. I was wondering if this is a right approach or should i leave it separately like i've done before. One limitation i see here is that when user is on the one of the directive view, the other becomes inactive (ie post-fresh, feed-inactive and vice versa). I suppose this limits the ability to refetch remotely from other component as there are no observables. is this approach sufficient for most features? does any one know if there is more obvious issue of this pattern? Much appreciated.
posts

feed
Beta Was this translation helpful? Give feedback.
All reactions