@@ -1414,9 +1414,10 @@ describe('dehydration and rehydration', () => {
14141414 nextCursor : pageParam + 1 ,
14151415 } ) ) ,
14161416 initialPageParam : 0 ,
1417- getNextPageParam : (
1418- lastPage : { items : Array < string > ; nextCursor : number } ,
1419- ) => lastPage . nextCursor ,
1417+ getNextPageParam : ( lastPage : {
1418+ items : Array < string >
1419+ nextCursor : number
1420+ } ) => lastPage . nextCursor ,
14201421 } ) ,
14211422 )
14221423
@@ -1446,7 +1447,10 @@ describe('dehydration and rehydration', () => {
14461447 queryClient . prefetchInfiniteQuery ( {
14471448 queryKey : [ 'infinite-with-behavior' ] ,
14481449 queryFn : async ( { pageParam } ) =>
1449- sleep ( 0 ) . then ( ( ) => ( { data : `page-${ pageParam } ` , next : pageParam + 1 } ) ) ,
1450+ sleep ( 0 ) . then ( ( ) => ( {
1451+ data : `page-${ pageParam } ` ,
1452+ next : pageParam + 1 ,
1453+ } ) ) ,
14501454 initialPageParam : 0 ,
14511455 getNextPageParam : ( lastPage : { data : string ; next : number } ) =>
14521456 lastPage . next ,
@@ -1463,7 +1467,10 @@ describe('dehydration and rehydration', () => {
14631467 hydrationClient . fetchInfiniteQuery ( {
14641468 queryKey : [ 'infinite-with-behavior' ] ,
14651469 queryFn : async ( { pageParam } ) =>
1466- sleep ( 0 ) . then ( ( ) => ( { data : `page-${ pageParam } ` , next : pageParam + 1 } ) ) ,
1470+ sleep ( 0 ) . then ( ( ) => ( {
1471+ data : `page-${ pageParam } ` ,
1472+ next : pageParam + 1 ,
1473+ } ) ) ,
14671474 initialPageParam : 0 ,
14681475 getNextPageParam : ( lastPage : { data : string ; next : number } ) =>
14691476 lastPage . next ,
0 commit comments