I have my method here : imports/api/Books/methods
Following the guide, we can import this method from server or from both (server and client) if we want optimistic UI.
However, if we use this package : https://github.com/meteor/validated-method : is it necessary to import from both ? Can we just import from server ?
Thank you
update
I already read this :
Optimistic UI works by running the method against the minimongo on the client to give you the most likely result from running the query on the server. Therefore the method needs to be available from both the client and server to enable optimistic UI.
If you want to do something differently on the client or server you have the isSimulation
boolean that will be true in the case it is running on the client and false on the server side.