last day (15 days later) » 

11:34 PM
-2
Q: How should I keep my React user interface in sync with ajax calls?

TrapparI've already come up with a number of different methods to solve this issue in my code, but I'd like to hear how other people do it. So far here's what I've done: Use lodash.throttle on a method which does an ajax call so that multiple clicks in quick succession don't create multiple calls. Us...

 
@JosephtheDreamer you are missing the point. This isn't about reducing verbosity and it's not about any specific code. I am trying to find out how people generally solve this sort of problem. I only threw in some examples so that people can avoid answering with those answers, provide feedback of how I could improve those methods, or just say if that's how they do it as well. This conversation is not constructive, and I flagged your response as such. Do you have an actual answer?
 
@JosephtheDreamer You said "And I think this question is better fit in CodeReview SE." It's not a fit for Code Review at all, and cannot even begin to approach a fit until it actually contains concrete implemented, real, non-example code. So please be careful with your wording, especially with questions that might work on CR but need some improvements first. As for this questions' fit for Stack Overflow? I've voted to close as primarily opinion based.
 
@nhgrif are opinion based questions not allowed on Stack Overflow?
 
The short answer is no. The longer answer is that lots of questions will have some aspect of personal opinion or preference in them, however questions that are judged to be primarily opinion based are not a good fit for the Stack Exchange network. This question's primary problem is that instead of presenting a specific challenge with clearly defined constraints, you've just mentioned a problem and some solutions, and you appear to be trying to conduct a poll. You might be able to reword this into a decent question, but currently it's a bad fit.
 
@nhgrif Would it be allowed if I asked for the idiomatic approach to solving this problem using Flux?
 
11:34 PM
It might be, but it's possible that question would be too broad. I don't really know anything about JavaScript at all, so I couldn't say for sure (and definitely can't say for sure without seeing the actual question).
 
@nhgrif not sure how you could think that I was trying to conduct a poll when the question doesn't in any way indicate that and I say "I'd like to hear how other people do it." and "So how do you keep your UI in sync with ajax calls?"
@nhgrif also, I think it's quite possible that your view on this question is what it is entirely because you don't understand what I'm talking about. This is an extremely specific question.
 
As written, it's opinion based, and it will be put on hold soon.
I don't have to know the specific domain to understand the difference between opinion based questions and not per Stack Overflow's criteria.
The problem is, you're presenting three options (and I'm assuming you'd be open to any alternatives you haven't thought of, if that's possible).
You're asking which option is the best.
 
Not at all
 
You provide no criteria for what defines "best".
 
Haha, this is a pointless discussion. If my question isn't right for stack overflow it is purely because of people like you who are so caught up in the meta of this site that they can't see the plain english sitting in front of their face.
 
11:38 PM
You talk about some of the strengths/weaknesses of each, but still, which one is the best without any specified criteria is an opinion question.
Yes, the problem is with people like me, who take time out of my day to help you learn how to use the site.
 

last day (15 days later) »