Skip to content

Commit f5d8f8f

Browse files
committed
pure some things
1 parent 38ab21f commit f5d8f8f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/toolkit/src/createSlice.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ import type {
2828
import { createAsyncThunk as _createAsyncThunk } from './createAsyncThunk'
2929
import { emplace } from './utils'
3030

31-
const asyncThunkSymbol = Symbol.for('rtk-slice-createasyncthunk')
31+
const asyncThunkSymbol = /* @__PURE__ */ Symbol.for(
32+
'rtk-slice-createasyncthunk',
33+
)
3234
// type is annotated because it's too long to infer
3335
export const asyncThunkCreator: {
3436
[asyncThunkSymbol]: typeof _createAsyncThunk
35-
} = {
37+
} = /* @__PURE__ */ {
3638
[asyncThunkSymbol]: _createAsyncThunk,
3739
}
3840

@@ -863,7 +865,7 @@ function wrapSelector<State, NewState, S extends Selector<State>>(
863865
*
864866
* @public
865867
*/
866-
export const createSlice = buildCreateSlice()
868+
export const createSlice = /* @__PURE__ */ buildCreateSlice()
867869

868870
interface ReducerHandlingContext<State> {
869871
sliceCaseReducersByName: Record<

0 commit comments

Comments
 (0)