Skip to content

Commit

Permalink
Improve reducer name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kornil committed May 13, 2020
1 parent 29e1e1e commit b4196cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/gatsby/src/redux/reducers/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IGatsbyState, ActionsUnion } from "../types"
const services = new Map()
let programStatus = `BOOTSTRAPPING`

export const components = (
export const componentsReducer = (
state: IGatsbyState["components"] = new Map(),
action: ActionsUnion
): IGatsbyState["components"] => {
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby/src/redux/reducers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { webpackCompilationHashReducer } from "./webpack-compilation-hash"
import { reducer as logReducer } from "gatsby-cli/lib/reporter/redux/reducer"
import { lastAction } from "./last-action"
import { jobsV2Reducer } from "./jobsv2"
import { components } from "./components"
import { componentsReducer } from "./components"

/**
* @property exports.nodesTouched Set<string>
Expand All @@ -30,7 +30,7 @@ module.exports = {
pages: pagesReducer,
status: statusReducer,
componentDataDependencies: require(`./component-data-dependencies`),
components: components,
components: componentsReducer,
staticQueryComponents: staticQueryComponentsReducer,
jobs: require(`./jobs`),
jobsV2: jobsV2Reducer,
Expand Down

0 comments on commit b4196cf

Please sign in to comment.