Skip to content

Commit a674616

Browse files
authored
Merge pull request #4157 from reduxjs/pure-some-things
pure some things
2 parents 38ab21f + a006ff1 commit a674616

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/toolkit/src/createSlice.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ 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
@@ -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)