@@ -48,15 +48,15 @@ describe('mutationOptions', () => {
4848
4949 function Mutation ( ) {
5050 const isMutating = useIsMutating ( )
51- const { mutate } = useMutation ( ( ) => mutationOpts )
51+ const mutation = useMutation ( ( ) => mutationOpts )
5252
5353 createRenderEffect ( isMutating , ( count ) => {
5454 isMutatingArray . push ( count )
5555 } )
5656
5757 return (
5858 < div >
59- < button onClick = { ( ) => mutate ( ) } > mutate</ button >
59+ < button onClick = { ( ) => mutation . mutate ( ) } > mutate</ button >
6060 </ div >
6161 )
6262 }
@@ -85,15 +85,15 @@ describe('mutationOptions', () => {
8585
8686 function Mutation ( ) {
8787 const isMutating = useIsMutating ( )
88- const { mutate } = useMutation ( ( ) => mutationOpts )
88+ const mutation = useMutation ( ( ) => mutationOpts )
8989
9090 createRenderEffect ( isMutating , ( count ) => {
9191 isMutatingArray . push ( count )
9292 } )
9393
9494 return (
9595 < div >
96- < button onClick = { ( ) => mutate ( ) } > mutate</ button >
96+ < button onClick = { ( ) => mutation . mutate ( ) } > mutate</ button >
9797 </ div >
9898 )
9999 }
@@ -126,17 +126,17 @@ describe('mutationOptions', () => {
126126
127127 function Mutation ( ) {
128128 const isMutating = useIsMutating ( )
129- const { mutate : mutate1 } = useMutation ( ( ) => mutationOpts1 )
130- const { mutate : mutate2 } = useMutation ( ( ) => mutationOpts2 )
129+ const mutation1 = useMutation ( ( ) => mutationOpts1 )
130+ const mutation2 = useMutation ( ( ) => mutationOpts2 )
131131
132132 createRenderEffect ( isMutating , ( count ) => {
133133 isMutatingArray . push ( count )
134134 } )
135135
136136 return (
137137 < div >
138- < button onClick = { ( ) => mutate1 ( ) } > mutate1</ button >
139- < button onClick = { ( ) => mutate2 ( ) } > mutate2</ button >
138+ < button onClick = { ( ) => mutation1 . mutate ( ) } > mutate1</ button >
139+ < button onClick = { ( ) => mutation2 . mutate ( ) } > mutate2</ button >
140140 </ div >
141141 )
142142 }
@@ -171,17 +171,17 @@ describe('mutationOptions', () => {
171171 const isMutating = useIsMutating ( ( ) => ( {
172172 mutationKey : mutationOpts1 . mutationKey ,
173173 } ) )
174- const { mutate : mutate1 } = useMutation ( ( ) => mutationOpts1 )
175- const { mutate : mutate2 } = useMutation ( ( ) => mutationOpts2 )
174+ const mutation1 = useMutation ( ( ) => mutationOpts1 )
175+ const mutation2 = useMutation ( ( ) => mutationOpts2 )
176176
177177 createRenderEffect ( isMutating , ( count ) => {
178178 isMutatingArray . push ( count )
179179 } )
180180
181181 return (
182182 < div >
183- < button onClick = { ( ) => mutate1 ( ) } > mutate1</ button >
184- < button onClick = { ( ) => mutate2 ( ) } > mutate2</ button >
183+ < button onClick = { ( ) => mutation1 . mutate ( ) } > mutate1</ button >
184+ < button onClick = { ( ) => mutation2 . mutate ( ) } > mutate2</ button >
185185 </ div >
186186 )
187187 }
@@ -211,11 +211,11 @@ describe('mutationOptions', () => {
211211 } )
212212
213213 function Mutation ( ) {
214- const { mutate } = useMutation ( ( ) => mutationOpts )
214+ const mutation = useMutation ( ( ) => mutationOpts )
215215
216216 return (
217217 < div >
218- < button onClick = { ( ) => mutate ( ) } > mutate</ button >
218+ < button onClick = { ( ) => mutation . mutate ( ) } > mutate</ button >
219219 </ div >
220220 )
221221 }
@@ -252,11 +252,11 @@ describe('mutationOptions', () => {
252252 } )
253253
254254 function Mutation ( ) {
255- const { mutate } = useMutation ( ( ) => mutationOpts )
255+ const mutation = useMutation ( ( ) => mutationOpts )
256256
257257 return (
258258 < div >
259- < button onClick = { ( ) => mutate ( ) } > mutate</ button >
259+ < button onClick = { ( ) => mutation . mutate ( ) } > mutate</ button >
260260 </ div >
261261 )
262262 }
@@ -297,13 +297,13 @@ describe('mutationOptions', () => {
297297 } )
298298
299299 function Mutation ( ) {
300- const { mutate : mutate1 } = useMutation ( ( ) => mutationOpts1 )
301- const { mutate : mutate2 } = useMutation ( ( ) => mutationOpts2 )
300+ const mutation1 = useMutation ( ( ) => mutationOpts1 )
301+ const mutation2 = useMutation ( ( ) => mutationOpts2 )
302302
303303 return (
304304 < div >
305- < button onClick = { ( ) => mutate1 ( ) } > mutate1</ button >
306- < button onClick = { ( ) => mutate2 ( ) } > mutate2</ button >
305+ < button onClick = { ( ) => mutation1 . mutate ( ) } > mutate1</ button >
306+ < button onClick = { ( ) => mutation2 . mutate ( ) } > mutate2</ button >
307307 </ div >
308308 )
309309 }
@@ -345,13 +345,13 @@ describe('mutationOptions', () => {
345345 } )
346346
347347 function Mutation ( ) {
348- const { mutate : mutate1 } = useMutation ( ( ) => mutationOpts1 )
349- const { mutate : mutate2 } = useMutation ( ( ) => mutationOpts2 )
348+ const mutation1 = useMutation ( ( ) => mutationOpts1 )
349+ const mutation2 = useMutation ( ( ) => mutationOpts2 )
350350
351351 return (
352352 < div >
353- < button onClick = { ( ) => mutate1 ( ) } > mutate1</ button >
354- < button onClick = { ( ) => mutate2 ( ) } > mutate2</ button >
353+ < button onClick = { ( ) => mutation1 . mutate ( ) } > mutate1</ button >
354+ < button onClick = { ( ) => mutation2 . mutate ( ) } > mutate2</ button >
355355 </ div >
356356 )
357357 }
@@ -398,7 +398,7 @@ describe('mutationOptions', () => {
398398 } )
399399
400400 function Mutation ( ) {
401- const { mutate } = useMutation ( ( ) => mutationOpts )
401+ const mutation = useMutation ( ( ) => mutationOpts )
402402 const states = useMutationState ( ( ) => ( {
403403 filters : { mutationKey : mutationOpts . mutationKey , status : 'success' } ,
404404 } ) )
@@ -412,7 +412,7 @@ describe('mutationOptions', () => {
412412
413413 return (
414414 < div >
415- < button onClick = { ( ) => mutate ( ) } > mutate</ button >
415+ < button onClick = { ( ) => mutation . mutate ( ) } > mutate</ button >
416416 </ div >
417417 )
418418 }
@@ -441,7 +441,7 @@ describe('mutationOptions', () => {
441441 } )
442442
443443 function Mutation ( ) {
444- const { mutate } = useMutation ( ( ) => mutationOpts )
444+ const mutation = useMutation ( ( ) => mutationOpts )
445445 const states = useMutationState ( ( ) => ( {
446446 filters : { status : 'success' } ,
447447 } ) )
@@ -455,7 +455,7 @@ describe('mutationOptions', () => {
455455
456456 return (
457457 < div >
458- < button onClick = { ( ) => mutate ( ) } > mutate</ button >
458+ < button onClick = { ( ) => mutation . mutate ( ) } > mutate</ button >
459459 </ div >
460460 )
461461 }
@@ -488,8 +488,8 @@ describe('mutationOptions', () => {
488488 } )
489489
490490 function Mutation ( ) {
491- const { mutate : mutate1 } = useMutation ( ( ) => mutationOpts1 )
492- const { mutate : mutate2 } = useMutation ( ( ) => mutationOpts2 )
491+ const mutation1 = useMutation ( ( ) => mutationOpts1 )
492+ const mutation2 = useMutation ( ( ) => mutationOpts2 )
493493 const states = useMutationState ( ( ) => ( {
494494 filters : { status : 'success' } ,
495495 } ) )
@@ -503,8 +503,8 @@ describe('mutationOptions', () => {
503503
504504 return (
505505 < div >
506- < button onClick = { ( ) => mutate1 ( ) } > mutate1</ button >
507- < button onClick = { ( ) => mutate2 ( ) } > mutate2</ button >
506+ < button onClick = { ( ) => mutation1 . mutate ( ) } > mutate1</ button >
507+ < button onClick = { ( ) => mutation2 . mutate ( ) } > mutate2</ button >
508508 </ div >
509509 )
510510 }
@@ -539,8 +539,8 @@ describe('mutationOptions', () => {
539539 } )
540540
541541 function Mutation ( ) {
542- const { mutate : mutate1 } = useMutation ( ( ) => mutationOpts1 )
543- const { mutate : mutate2 } = useMutation ( ( ) => mutationOpts2 )
542+ const mutation1 = useMutation ( ( ) => mutationOpts1 )
543+ const mutation2 = useMutation ( ( ) => mutationOpts2 )
544544 const states = useMutationState ( ( ) => ( {
545545 filters : { mutationKey : mutationOpts1 . mutationKey , status : 'success' } ,
546546 } ) )
@@ -554,8 +554,8 @@ describe('mutationOptions', () => {
554554
555555 return (
556556 < div >
557- < button onClick = { ( ) => mutate1 ( ) } > mutate1</ button >
558- < button onClick = { ( ) => mutate2 ( ) } > mutate2</ button >
557+ < button onClick = { ( ) => mutation1 . mutate ( ) } > mutate1</ button >
558+ < button onClick = { ( ) => mutation2 . mutate ( ) } > mutate2</ button >
559559 </ div >
560560 )
561561 }
0 commit comments