mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 11:27:10 +08:00
Comments
This commit is contained in:
@@ -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') {
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user