concent

concent

  • Docs
  • API
  • ChangeLog
  • GitHub

›通用类型解释

顶层api

  • run
  • configure
  • cloneModule
  • register
  • connect
  • connectDumb
  • emit
  • emitWith
  • dispatch
  • getState
  • getGlobalState
  • getComputed
  • setState
  • setGlobalState
  • call
  • execute
  • executeAll

通用类型解释

  • HandlerCtx
  • CcFragmentCtx
  • WatchFn

实例上下文api

  • ctx.dispatch
  • ctx.invoke
  • ctx.setState
  • ctx.setModuleState
  • ctx.setGlobalState
  • ctx.computed
  • ctx.watch
  • ctx.syncBool
  • ctx.set
  • ctx.emit
  • ctx.on
  • ctx.off

CcFragment api

  • Fifth Document

通用api

  • dispatch

HandlerCtx


出现场合

  • PartialStateGenerationFunction 定义
(payload:any, moduleState:object, handlerCtx:HandlerCtx)=> object | undefined

类型参数定义

type HandlerCtx = {
  invoke:(
     fn:PartialStateGenerationFunction|{fn:PartialStateGenerationFunction, module:string}, 
     payload?:any,
     delay?:number,
     identity?:string,
   )=>Promise<object>,

   lazyInvoke:(
     fn:PartialStateGenerationFunction|{fn:PartialStateGenerationFunction, module:string}, 
     payload?:any,
     delay?:number,
     identity?:string,
   )=>Promise<object>,

   dispatch:(
     typeDescriptor:string | ReducerFunction, 
     payload?:any,
     delay?:number,
     identity?:string,
   )=>Promise<object>,

   lazyDispatch:(
     typeDescriptor:string | ReducerFunction, 
     payload?:any,
     delay?:number,
     identity?:string,
   )=>Promise<object>,

   connectedState:{[moduleName:string]:object},
   rootState:{[moduleName:string]:object},
   globalState:object,
   moduleState:object,
   moduleComputed:object,
   connectedComputed:{[moduleName:string]:{[stateKey:string]:any}},
   refState:object,
};
← executeAllCcFragmentCtx →
  • 出现场合
  • 类型参数定义
Copyright © 2019 concentjs.org