Skip to main content

IChaynsReact

Index

Properties

addDataListener

addDataListener: (cb: DataChangeCallback) => CleanupCallback

Type declaration

emitChange

emitChange: () => void

Type declaration

    • (): void
    • Returns void

functions

functions: ChaynsReactFunctions

getInitialData

getInitialData: () => ChaynsReactValues

Type declaration

    • (): ChaynsReactValues
    • Returns ChaynsReactValues

getSSRData

getSSRData: () => null | ChaynsReactValues

Type declaration

    • (): null | ChaynsReactValues
    • Returns null | ChaynsReactValues

init

init: () => Promise<void>

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

subscribe

subscribe: (listener: () => void) => () => void

Type declaration

    • (listener: () => void): () => void
    • Parameters

      • listener: () => void

        Returns () => void

          • (): void
          • Returns void

    values

    values: ChaynsReactValues