Combo
  • Combo.js
  • Guide
    • Concepts
      • Lifecycle Methods
  • APIs
    • Component
      • canMount
      • canUnmount
      • canUpdate
      • created
      • el
      • isMounted
      • mount
      • mounting
      • mounted
      • on
      • props
      • receiving
      • received
      • refresh
      • render
      • rendered
      • state
      • unmount
      • unmounting
      • unmounted
      • update
      • updated
      • updating
  • FAQs
    • Props
    • State
    • Events
    • Ajax
Powered by GitBook
On this page
  • Parameters
  • Example
  1. APIs
  2. Component

updated

Invoked after the component was updated.

Parameters

  • prev : object - The previous data.

Example

import { Component } from "combo-js";

const Example = new class extends Component {  
    created() {
        this.update({});
    } 
    updated() {
        console.log("The component was updated.")
    }
}();

Example.mount(document.getElementById("root"));
<div id="root"></div>

PreviousupdateNextupdating

Last updated 6 years ago