-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add button processing state to forms that send data to server #130
Comments
@iamlasse is this still an issue if we move the meteor methods out of the server folder in order to allow optimistic UI updates? |
@jeffshaver I'm not sure i know what optimistic UI is..? |
It's "optimistic" because it believes that its communication to the server will be handled appropriately, so presents the UI as if it had already happened. http://info.meteor.com/blog/optimistic-ui-with-meteor-latency-compensation |
@iamlasse yeah. basically what chris said. So Meteor methods will run on the client and update minimongo (therefore updating the UI). The server has full final control of the outcome. But since the client can run the method, we get "optimistic" updates. Meaning that as long as the server agrees with the client about what happened, nothing changes from what the client did. This basically gets rid of server-round-trip time for methods to run by mimicking what the server will do. I have a ticket already to move the methods into the file with the collection they work against: #54. @ZachStoltz will be taking that one on I believe. |
Would it not be better to keep the button disabled until all the form fields are filled in. |
I see, I will read more up on this. |
@jeffshaver @Wesler how does it work in blaze? In angular youd just set a ngdisabled conditional attr on buttons. Would it be a helper perhaps or an autorun? |
Disable button/change text while submission is happening so they are aware of the changes
The text was updated successfully, but these errors were encountered: