mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-06 19:00:14 +00:00
* Enable exhaustive deps in the repo * Add tests for the new hooks * Update claude.md * Remove pre-commit overwrite
13 lines
386 B
TypeScript
13 lines
386 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {useEffect, type EffectCallback} from 'react';
|
|
|
|
function useDidMount(callback: EffectCallback) {
|
|
// We only want to run this effect on mount.
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
useEffect(callback, []);
|
|
}
|
|
|
|
export default useDidMount;
|