Skip to content

Commit

Permalink
Update advanced tutorial with createSlice changes
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Oct 13, 2019
1 parent 094ee19 commit d68ae98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/tutorials/advanced-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ let initialState: CurrentDisplayState = {
}

const issuesDisplaySlice = createSlice({
slice: 'issuesDisplay',
name: 'issuesDisplay',
initialState,
reducers: {
displayRepo(state, action: PayloadAction<CurrentRepo>) {
Expand Down Expand Up @@ -566,7 +566,7 @@ const initialState: RepoDetailsState = {
}

const repoDetails = createSlice({
slice: 'repoDetails',
name: 'repoDetails',
initialState,
reducers: {
getRepoDetailsSuccess(state, action: PayloadAction<RepoDetails>) {
Expand Down Expand Up @@ -733,7 +733,7 @@ function loadingFailed(state: IssuesState, action: PayloadAction<string>) {
}

const issues = createSlice({
slice: 'issues',
name: 'issues',
initialState: issuesInitialState,
reducers: {
getIssueStart: startLoading,
Expand Down Expand Up @@ -1043,7 +1043,7 @@ const initialState: CommentsState = {
}

const comments = createSlice({
slice: 'comments',
name: 'comments',
initialState,
reducers: {
getCommentsStart(state) {
Expand Down

0 comments on commit d68ae98

Please sign in to comment.