This commit is contained in:
Chi Vinh Le
2018-01-23 19:52:04 +01:00
parent c7242f5d98
commit b196bb379a
2 changed files with 8 additions and 0 deletions
@@ -237,6 +237,10 @@ const createHOC = (document, config, { notifyOnError = true }) =>
/**
* Exports a HOC with the same signature as `graphql`, that will
* apply mutation options registered in the graphRegistry.
*
* The returned HOC accepts a settings object with the following properties:
* notifyOnError: show a notification to the user when an error occured.
* Defaults to true, requires the `notify` action to be mounted.
*/
export default (document, config = {}) => settingsOrComponent => {
if (typeof settingsOrComponent === 'function') {
+4
View File
@@ -346,6 +346,10 @@ const createHOC = (document, config, { notifyOnError = true }) =>
/**
* Exports a HOC with the same signature as `graphql`, that will
* apply query options registered in the graphRegistry.
*
* The returned HOC accepts a settings object with the following properties:
* notifyOnError: show a notification to the user when an error occured.
* Defaults to true, requires the `notify` action to be mounted.
*/
export default (document, config = {}) => settingsOrComponent => {
if (typeof settingsOrComponent === 'function') {