I’m having issues trying to understand the flow of meteor and why, for example, in the folder server I have
config.js
publications.js
how does meteor knows what to call first? If I change the file name publications.js it still works, why?
I’m having issues trying to understand the flow of meteor and why, for example, in the folder server I have
config.js
publications.js
how does meteor knows what to call first? If I change the file name publications.js it still works, why?
Meteor guide to the rescue! https://guide.meteor.com/structure.html#load-order
Basically all files outside of imports/
are automatically loaded.
Thank you sashko for the quick reply, in the context of flow-router, how does this happens using this as example: https://github.com/arunoda/hello-react-meteor
I’m going thru kadira’s flow router docs but no info on it.
I’m not sure how this is related to Flow Router at all. The router has exactly 0 impact on when code is executed.
In https://guide.meteor.com/structure.html#load-order says the nav.html template is loaded first, then main.html, but in the flow-router example how does this compares?
That list is just an example of how the rules listed might apply:
- HTML template files are always loaded before everything else
Thank you sashko! didn’t get the meaning of it the first and 2nd time