I read from the official guide that the collection api is synchronous. When i open the browser console. I see multiple re-renders. At first, the console.log returns an empty array, but at subsequent renders, returns correctly. If the API was synchronous, shouldn’t this be a non empty array from the start? Am I missing something?
Are you saying that the relevant data is not loaded in the client-side mini mongo cache during the first render? I am using tracker react to load data and the subscription happens in the constructor itself.
Doesnt this mean that the subscription will happen before the render(even the first) itself?
Also can you suggest the best package for data loading? I chose tracker react over the react meteor data mixin because I read somewhere that mixins are on the way out in react. Thanks!