Skip to content

Commit 290a78b

Browse files
committed
remove alpha compatibility fallbacks
1 parent b9aefe0 commit 290a78b

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

packages/toolkit/src/query/core/module.ts

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -459,35 +459,6 @@ export const coreModule = (): Module<CoreModule> => ({
459459
})
460460
safeAssign(api.internalActions, sliceActions)
461461

462-
// remove in final release
463-
Object.defineProperty(api.util, 'updateQueryResult', {
464-
get() {
465-
if (
466-
typeof process !== 'undefined' &&
467-
process.env.NODE_ENV === 'development'
468-
) {
469-
console.warn(
470-
'`api.util.updateQueryResult` has been renamed to `api.util.updateQueryData`, please change your code accordingly'
471-
)
472-
}
473-
return api.util.updateQueryData
474-
},
475-
})
476-
// remove in final release
477-
Object.defineProperty(api.util, 'patchQueryResult', {
478-
get() {
479-
if (
480-
typeof process !== 'undefined' &&
481-
process.env.NODE_ENV === 'development'
482-
) {
483-
console.warn(
484-
'`api.util.patchQueryResult` has been renamed to `api.util.patchQueryData`, please change your code accordingly'
485-
)
486-
}
487-
return api.util.patchQueryData
488-
},
489-
})
490-
491462
const { middleware, actions: middlewareActions } = buildMiddleware({
492463
reducerPath,
493464
context,

0 commit comments

Comments
 (0)