Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Component<NowTimerProps, NowTimerState>
    • NowTimer

Index

Constructors

constructor

Properties

Optional base

base?: Element | Text

Private clearTimeout

clearTimeout: any

Private computeTiming

computeTiming: any

context

context: ViewContext

initialNowDate

initialNowDate: Date

initialNowQueriedMs

initialNowQueriedMs: number

props

props: RenderableProps<NowTimerProps, any>

Private setTimeout

setTimeout: any

state

state: Readonly<NowTimerState>

timeoutId

timeoutId: any

Static contextType

contextType: any

Static Optional defaultProps

defaultProps?: any

Static Optional displayName

displayName?: string

Methods

Optional componentDidCatch

  • componentDidCatch(error: any, errorInfo: any): void

componentDidMount

  • componentDidMount(): void

componentDidUpdate

  • componentDidUpdate(prevProps: NowTimerProps): void

Optional componentWillMount

  • componentWillMount(): void

Optional componentWillReceiveProps

  • componentWillReceiveProps(nextProps: Readonly<NowTimerProps>, nextContext: any): void

componentWillUnmount

  • componentWillUnmount(): void

Optional componentWillUpdate

  • componentWillUpdate(nextProps: Readonly<NowTimerProps>, nextState: Readonly<NowTimerState>, nextContext: any): void
  • Parameters

    • nextProps: Readonly<NowTimerProps>
    • nextState: Readonly<NowTimerState>
    • nextContext: any

    Returns void

forceUpdate

  • forceUpdate(callback?: () => void): void
  • Parameters

    • Optional callback: () => void
        • (): void
        • Returns void

    Returns void

Optional getChildContext

  • getChildContext(): object

Optional getSnapshotBeforeUpdate

  • getSnapshotBeforeUpdate(oldProps: Readonly<NowTimerProps>, oldState: Readonly<NowTimerState>): any

render

setState

  • setState<K>(state: null | ((prevState: Readonly<NowTimerState>, props: Readonly<NowTimerProps>) => null | Pick<NowTimerState, K> | Partial<NowTimerState>) | Pick<NowTimerState, K> | Partial<NowTimerState>, callback?: () => void): void
  • Type parameters

    • K: keyof NowTimerState

    Parameters

    • state: null | ((prevState: Readonly<NowTimerState>, props: Readonly<NowTimerProps>) => null | Pick<NowTimerState, K> | Partial<NowTimerState>) | Pick<NowTimerState, K> | Partial<NowTimerState>
    • Optional callback: () => void
        • (): void
        • Returns void

    Returns void

Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<NowTimerProps>, nextState: Readonly<NowTimerState>, nextContext: any): boolean
  • Parameters

    • nextProps: Readonly<NowTimerProps>
    • nextState: Readonly<NowTimerState>
    • nextContext: any

    Returns boolean

Static Optional getDerivedStateFromError

  • getDerivedStateFromError(error: any): null | object

Static Optional getDerivedStateFromProps

  • getDerivedStateFromProps(props: object, state: object): null | object

Generated using TypeDoc