diff --git a/packages/toolkit/src/createSlice.ts b/packages/toolkit/src/createSlice.ts index 441fbbcc6a..6ab32a3d27 100644 --- a/packages/toolkit/src/createSlice.ts +++ b/packages/toolkit/src/createSlice.ts @@ -28,11 +28,13 @@ import type { import { createAsyncThunk as _createAsyncThunk } from './createAsyncThunk' import { emplace } from './utils' -const asyncThunkSymbol = Symbol.for('rtk-slice-createasyncthunk') +const asyncThunkSymbol = /* @__PURE__ */ Symbol.for( + 'rtk-slice-createasyncthunk', +) // type is annotated because it's too long to infer export const asyncThunkCreator: { [asyncThunkSymbol]: typeof _createAsyncThunk -} = { +} = /* @__PURE__ */ { [asyncThunkSymbol]: _createAsyncThunk, } @@ -863,7 +865,7 @@ function wrapSelector>( * * @public */ -export const createSlice = buildCreateSlice() +export const createSlice = /* @__PURE__ */ buildCreateSlice() interface ReducerHandlingContext { sliceCaseReducersByName: Record<