File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/internal-packages/query/lib/store Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -409,14 +409,13 @@ const QueryStore = Reflux.createStore({
409
409
return ;
410
410
}
411
411
412
- this . setState ( { queryState : APPLY_STATE } ) ;
413
-
414
412
// empty string is interpreted as {}
415
413
if ( this . state . queryString === '' ) {
416
414
this . setQuery ( { } ) ;
417
415
}
418
416
if ( this . state . valid ) {
419
417
this . setState ( {
418
+ queryState : APPLY_STATE ,
420
419
lastExecutedQuery : _ . clone ( this . state . query )
421
420
} ) ;
422
421
}
@@ -426,12 +425,12 @@ const QueryStore = Reflux.createStore({
426
425
* dismiss current changes to the query and restore `{}` as the query.
427
426
*/
428
427
reset ( ) {
429
- this . setState ( { queryState : RESET_STATE } ) ;
430
428
if ( ! _ . isEqual ( this . state . query , { } ) ) {
431
429
this . setQuery ( { } ) ;
432
430
if ( ! _ . isEqual ( this . state . lastExecutedQuery , { } ) ) {
433
431
if ( this . state . valid ) {
434
432
this . setState ( {
433
+ queryState : RESET_STATE ,
435
434
lastExecutedQuery : _ . clone ( this . state . query )
436
435
} ) ;
437
436
}
You can’t perform that action at this time.
0 commit comments