Skip to content

Commit

Permalink
pure some things
Browse files Browse the repository at this point in the history
  • Loading branch information
EskiMojo14 committed Feb 5, 2024
1 parent 38ab21f commit f5d8f8f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/toolkit/src/createSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down Expand Up @@ -863,7 +865,7 @@ function wrapSelector<State, NewState, S extends Selector<State>>(
*
* @public
*/
export const createSlice = buildCreateSlice()
export const createSlice = /* @__PURE__ */ buildCreateSlice()

interface ReducerHandlingContext<State> {
sliceCaseReducersByName: Record<
Expand Down

0 comments on commit f5d8f8f

Please sign in to comment.