File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
packages/react-query/src/__tests__ Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -1766,20 +1766,24 @@ describe('useQueries', () => {
17661766 < div data-testid = "query-count" > queries: { result . length } </ div >
17671767 < button
17681768 onClick = { ( ) => {
1769- setQueries ( [ {
1770- queryKey : [ 'query1' ] ,
1771- queryFn : ( ) => 'data1' ,
1772- } ] )
1769+ setQueries ( [
1770+ {
1771+ queryKey : [ 'query1' ] ,
1772+ queryFn : ( ) => 'data1' ,
1773+ } ,
1774+ ] )
17731775 } }
17741776 >
17751777 remove last
17761778 </ button >
17771779 < button
17781780 onClick = { ( ) => {
1779- setQueries ( [ {
1780- queryKey : [ 'query2' ] ,
1781- queryFn : ( ) => 'data2' ,
1782- } ] )
1781+ setQueries ( [
1782+ {
1783+ queryKey : [ 'query2' ] ,
1784+ queryFn : ( ) => 'data2' ,
1785+ } ,
1786+ ] )
17831787 } }
17841788 >
17851789 remove first
@@ -1789,7 +1793,7 @@ describe('useQueries', () => {
17891793 }
17901794
17911795 const rendered = renderWithClient ( queryClient , < Page /> )
1792-
1796+
17931797 await vi . advanceTimersByTimeAsync ( 0 )
17941798 renderCount = 0
17951799
You can’t perform that action at this time.
0 commit comments