Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/templates/client/base/apolloClient.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ApolloClient from 'apollo-client'
import { ApolloClient } from 'react-apollo'

export default new ApolloClient({
dataIdFromObject: result => {
Expand Down
2 changes: 1 addition & 1 deletion app/templates/client/modules/app/reducer/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createReducer } from 'zeal-redux-utils'
import createReducer from 'utils/createReducer'

const initialState = {}

Expand Down
9 changes: 9 additions & 0 deletions app/templates/client/utils/createReducer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { partialRight, test } from 'ramda'
import { createReducer } from 'zeal-redux-utils'

const isApolloAction = action => test(/^APOLLO_/, action.type)

export default partialRight(
createReducer,
[{ allowNonStandardActionIf: isApolloAction }]
)
32 changes: 15 additions & 17 deletions app/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,26 @@
"private": true,
"dependencies": {
"@zeal/react-scripts": "^0.2.2",
"apollo-client": "^0.6.0",
"babel-polyfill": "^6.20.0",
"enzyme": "^2.6.0",
"history": "^4.4.1",
"immutability-helper": "^2.0.0",
"babel-polyfill": "^6.23.0",
"enzyme": "^2.8.2",
"history": "^4.6.1",
"material-design-icons": "^3.0.1",
"normalize.css": "^5.0.0",
"npm-run-all": "^4.0.1",
"react": "^15.4.1",
"react-addons-css-transition-group": "^15.4.1",
"react-addons-test-utils": "^15.4.1",
"react-apollo": "^0.8.1",
"react-css-themr": "^1.6.1",
"react-dom": "^15.4.1",
"react-redux": "^5.0.2",
"react-router-dom": "^4.0.0-beta.6",
"npm-run-all": "^4.0.2",
"ramda": "^0.23.0",
"react": "^15.5.4",
"react-apollo": "^1.2.0",
"react-css-themr": "^2.0.0",
"react-dom": "^15.5.4",
"react-redux": "^5.0.4",
"react-router-dom": "^4.1.1",
"react-test-renderer": "^15.5.4",
"react-toolbox": "^1.3.1",
"react-transition-group": "^1.1.3",
"redux": "^3.6.0",
"redux-devtools-extension": "^1.0.0",
"redux-devtools-extension": "^2.13.2",
"roboto-fontface": "^0.7.0",
"sass-lint": "^1.10.2",
"zeal-redux-utils": "^0.3.0"
"zeal-redux-utils": "^0.3.1"
},
"scripts": {
"start": "react-scripts start",
Expand Down
Loading