Member Junction
    Preparing search index...

    Component lifecycle events

    interface ComponentLifecycle {
        afterMount?: () => void;
        afterUpdate?: (prevProps: any, currentProps: any) => void;
        beforeMount?: () => void;
        beforeUnmount?: () => void;
        beforeUpdate?: (prevProps: any, nextProps: any) => void;
    }
    Index

    Properties

    afterMount?: () => void

    Called after component mounts

    afterUpdate?: (prevProps: any, currentProps: any) => void

    Called after component updates

    beforeMount?: () => void

    Called before component mounts

    beforeUnmount?: () => void

    Called before component unmounts

    beforeUpdate?: (prevProps: any, nextProps: any) => void

    Called before component updates