Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 4x 4x | // @flow
import * as React from 'react';
export const defaultContext = {
query: {},
dataChanged: {},
fetch: () => {throw new Error('there is no fetch method');},
subscribe: () => {throw new Error('there is no subscribe method');},
request: () => {throw new Error('there is no request method');},
deploy: () => {throw new Error('there is no deploy method');},
reset: () => {throw new Error('there is not reset method');},
onDeploy: () => {throw new Error('there is not onDeploy method');},
removeOnDeploy: () => {throw new Error('there is not removeOnDeploy method');},
updateQuery: () => {},
}
// $FlowFixMe: waiting for flow updata the libdef
export const HOCContext = React.createContext(defaultContext);
|