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
Date range no longer updating from URL #320
Comments
comment out https://github.com/nextstrain/auspice/blob/master/src/actions/loadData.js#L77 and https://github.com/nextstrain/auspice/blob/master/src/reducers/controls.js#L128 (and L129) and the old behavior is restored |
@colinmegill I wonder if we should look into async await (or similar) for the JSON requests - it would definitely make race conditions like this easier to handle... |
Regardless of whether async / await is used, the underlying infrastructure
will be this:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all
which
is a safe bet to go ahead and use.
…On Wed, May 3, 2017 at 11:08 PM james hadfield ***@***.***> wrote:
@colinmegill <https://github.com/colinmegill> I wonder if we should look
into async await (or similar) - it would definitely make race conditions
like easier to handle...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#320 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABsDGaZMkAi5KhsK16w0j-OEEOtht86tks5r2Wt4gaJpZM4NP2J->
.
|
Here's the polyfill: https://github.com/stefanpenner/es6-promise
And the compat table: https://caniuse.com/#search=promise
…On Thu, May 4, 2017 at 7:48 AM Colin Megill ***@***.***> wrote:
Regardless of whether async / await is used, the underlying infrastructure
will be this:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all which
is a safe bet to go ahead and use.
On Wed, May 3, 2017 at 11:08 PM james hadfield ***@***.***>
wrote:
> @colinmegill <https://github.com/colinmegill> I wonder if we should look
> into async await (or similar) - it would definitely make race conditions
> like easier to handle...
>
> —
> You are receiving this because you were mentioned.
>
>
> Reply to this email directly, view it on GitHub
> <#320 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABsDGaZMkAi5KhsK16w0j-OEEOtht86tks5r2Wt4gaJpZM4NP2J->
> .
>
|
Here's an example from the creator of Redux:
reduxjs/redux#723
…On Thu, May 4, 2017 at 7:49 AM Colin Megill ***@***.***> wrote:
Here's the polyfill: https://github.com/stefanpenner/es6-promise
And the compat table: https://caniuse.com/#search=promise
On Thu, May 4, 2017 at 7:48 AM Colin Megill ***@***.***> wrote:
> Regardless of whether async / await is used, the underlying
> infrastructure will be this:
> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all which
> is a safe bet to go ahead and use.
>
> On Wed, May 3, 2017 at 11:08 PM james hadfield ***@***.***>
> wrote:
>
>> @colinmegill <https://github.com/colinmegill> I wonder if we should
>> look into async await (or similar) - it would definitely make race
>> conditions like easier to handle...
>>
>> —
>> You are receiving this because you were mentioned.
>>
>>
>> Reply to this email directly, view it on GitHub
>> <#320 (comment)>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/ABsDGaZMkAi5KhsK16w0j-OEEOtht86tks5r2Wt4gaJpZM4NP2J->
>> .
>>
>
|
Sounds like this is more complicated than I initially imagined. |
Thanks @colinmegill - From the docs:
But we want to allow some Or maybe we can do |
On current
master
the date slider and the redux date range is no longer properly loading from the URL. Go here to see the behavior:http://www.nextstrain.org/zika?dmax=2015-06-21&dmin=2015-02-25
Date range should be subsetted, but it is not.
The text was updated successfully, but these errors were encountered: