How to use the etch.updateSync function in etch

To help you get started, we’ve selected a few etch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github atom / atom / src / dock.js View on Github external
elementAttached() {
    // Re-render when the dock is attached to make sure we remeasure sizes defined in CSS.
    etch.updateSync(this);
  }
github atom / atom / src / text-editor-component.js View on Github external
update (newProps) {
    if (this.shouldUpdate(newProps)) {
      this.props = newProps
      etch.updateSync(this)
    }
  }
github JunoLab / atom-ink / lib / debugger / debugger-pane.js View on Github external
reset () {
    this.stack = []

    this.info = {}
    etch.updateSync(this)
  }
github atom / atom / src / text-editor-component.js View on Github external
update (props) {
    this.props = props
    etch.updateSync(this)
  }
github atom / atom / src / text-editor-component.js View on Github external
constructor (props) {
    this.props = props
    this.element = this.props.element
    this.virtualNode = $.div(null)
    this.virtualNode.domNode = this.element
    etch.updateSync(this)
  }
github atom / github / spec / git / git-status-bar-component-spec.js View on Github external
spyOn(etch, 'update').andCallFake(component => {
      return etch.updateSync(component)
    })
  })
github atom / atom / src / text-editor-component.js View on Github external
update (props) {
    if (props.measuredContent) {
      this.props = props
      etch.updateSync(this)
    }
  }
github atom / github / spec / file-list-component-spec.js View on Github external
spyOn(component, 'selectionDidChange').andCallFake(() => {
        return etch.updateSync(component)
      })
github atom / atom / src / text-editor-component.js View on Github external
update (props) {
    if (this.shouldUpdate(props)) {
      this.props = props
      etch.updateSync(this)
    }
  }
github atom / github / spec / commit-box-component-spec.js View on Github external
spyOn(etch, 'update').andCallFake(component => {
        return etch.updateSync(component)
      })

etch

Perform virtual DOM updates based on changes to a data model.

MIT
Latest version published 4 years ago

Package Health Score

53 / 100
Full package analysis