For Meteor 184.108.40.206
- I’m confused, the docs say Meteor methods should be defined on both client and server side?
Or just in Imports folder?
I understand that on client Meteor methods help with optimistic UI and send DDP message with that message name, so, do i need to Duplicate Methods on both Client and Server?
- Also, I’ve been defining Schemas in
imports/folder. But this causes my client bundle size to increase by ~40kB. If i move all Schemas to server/. Will it help reduce bundle size? and will it still work with minimongo?
As per docs anything in imports folder will only be included if its imported somewhere.
- So if i define a method in imports folder and call it in
server/folder, does it become server-sided?
Thanks a lot