How are useSubscribe and useFind hooks linked together?

I know this is a dumb question, but if I have multiple subscriptions using useSubscribe and useFind, how is each useFind hook connected to the proper useSubscribe hook? Since they are aren’t nested like in useTracker, how are they paired? The useFind hook doesn’t seem to call out what subscription it’s tied to. Only the general mongo query is listed inside it.

I don’t think you can “link” them together in the way you thought.
useSubscribe just sync data from server to minimongo on the browser and useFind just run the query on the minimongo. If data was there then you can find it.

2 Likes