@@ -582,77 +582,6 @@ export function buildSlice({
582582 } ,
583583 } )
584584
585- const infiniteQuerySlice = createSlice ( {
586- name : `${ reducerPath } /infinitequeries` ,
587- initialState : initialState as QueryState < any > ,
588- reducers : {
589- fetchNextPage (
590- d ,
591- a : PayloadAction <
592- {
593- endpointName : string
594- requestId : string
595- options : Subscribers [ number ]
596- } & QuerySubstateIdentifier
597- > ,
598- ) {
599- // Dummy
600- } ,
601- unsubscribeQueryResult (
602- d ,
603- a : PayloadAction < { requestId : string } & QuerySubstateIdentifier > ,
604- ) {
605- // Dummy
606- } ,
607- internal_getRTKQSubscriptions ( ) { } ,
608- } ,
609- // extraReducers(builder) {
610- // builder
611- // .addCase(queryThunk.fulfilled, (draft, { meta, payload }) => {
612- // updateQuerySubstateIfExists(
613- // draft,
614- // meta.arg.queryCacheKey,
615- // (substate) => {
616- // const { infiniteQueryOptions } = definitions[
617- // meta.arg.endpointName
618- // ] as InfiniteQueryDefinition<any, any, any, any>
619- // substate.status = QueryStatus.fulfilled
620- // if(!infiniteQueryOptions) return
621- //
622- // if (substate.data !== undefined) {
623- // const { fulfilledTimeStamp, arg, baseQueryMeta, requestId } =
624- // meta
625- // // There's existing cache data. Let the user merge it in themselves.
626- // // We're already inside an Immer-powered reducer, and the user could just mutate `substate.data`
627- // // themselves inside of `merge()`. But, they might also want to return a new value.
628- // // Try to let Immer figure that part out, save the result, and assign it to `substate.data`.
629- // substate.data = payload
630- // } else {
631- // // Presumably a fresh request. Just cache the response data.
632- // substate.data = payload
633- // }
634- // } else {
635- // // Assign or safely update the cache data.
636- // substate.data =
637- // definitions[meta.arg.endpointName].structuralSharing ?? true
638- // ? copyWithStructuralSharing(
639- // isDraft(substate.data)
640- // ? original(substate.data)
641- // : substate.data,
642- // payload,
643- // )
644- // : payload
645- // }
646- //
647- // delete substate.error
648- // substate.fulfilledTimeStamp = meta.fulfilledTimeStamp
649- // },
650- // )
651- // })
652-
653- // },
654- } )
655-
656585 // Dummy slice to generate actions
657586 const subscriptionSlice = createSlice ( {
658587 name : `${ reducerPath } /subscriptions` ,
0 commit comments