Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #33022
| From | Une Bévue <unbewusst.sein@fai.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: synchronizing asynchronus request |
| Date | 2017-04-16 18:38 +0200 |
| Organization | Posted through ALPHANET (http://www.alphanet.ch/) |
| Message-ID | <od06mt$2ci$1@shakotay.alphanet.ch> (permalink) |
| References | <ocv32h$248$1@shakotay.alphanet.ch> <8760i4pst4.fsf@bsb.me.uk> |
Le 16/04/2017 à 12:09, Ben Bacarisse a écrit : > One way would be to count (or other record) the results as they come > in. The handler (the function that currently calls setState) could > increment a result count and call a function to use the result when the > counter becomes 4. yes, i admit that; your solution is easy to implement. I've to verify the order of results versus the order of requests. > It's not clear why you want only one call to setState because that > function could be doing exactly what I've described -- every time > setState is called it checks if the result that's being recorded is the > last price of the picture. I want only one setState (I'm using Inferno framework) because otherwise I have a render () for each setState the states before everythings are received are meaningless.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
synchronizing asynchronus request Une Bévue <unbewusst.sein@fai.invalid> - 2017-04-16 08:30 +0200
Re: synchronizing asynchronus request Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-04-16 11:09 +0100
Re: synchronizing asynchronus request Une Bévue <unbewusst.sein@fai.invalid> - 2017-04-16 18:38 +0200
Re: synchronizing asynchronus request Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2017-04-18 06:32 +0800
Solved: synchronizing asynchronus request Une Bévue <unbewusst.sein@fai.invalid> - 2017-04-18 11:58 +0200
Re: Solved: synchronizing asynchronus request Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2017-04-18 21:39 +0800
Re: Solved: synchronizing asynchronus request Une Bévue <unbewusst.sein@fai.invalid> - 2017-04-19 07:10 +0200
Re: Solved: synchronizing asynchronus request "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-04-19 12:17 +0200
csiph-web