Lifecycle Hook
Noun · Development
Definitions
A callback method invoked by a framework at a specific stage of a component's or resource's lifecycle — such as creation, mounting, updating, or destruction. Examples include React's `useEffect`, Vue's `onMounted`, and Kubernetes pod lifecycle hooks like `preStop`.
In plain English: A special function that a framework calls automatically at key moments, like when a component appears on screen or is about to be removed.
Example: "We clean up the WebSocket connection in the componentWillUnmount lifecycle hook so we don't leak connections when users navigate away."