I have a potentially large pub / sub which contains all events happening in the current month. I need to show this on an events page and also on a separate calender page.
These pages are different React components. Currently I’m using withTracker in both components to pass the data to React. If a user visits the events page and then the calender page, will the database be called twice? Or is Meteor clever enough to not require this?
Assuming that its called twice this seems bad for performance. Is there a way of caching queries? I could just have 1 subscription in my top level component and use React to pass the data to the pages, but then the user is always requesting the data even if they don’t end up needing it.