Skip to content

Conversation

@firstchair
Copy link
Contributor

@firstchair firstchair commented Mar 1, 2024

A modified useEffect hook with a guard to check whether if it's the first mount or not.
This can be seen as an anti-pattern but I think its still handy in a lot of real life use cases.

It also includes a useIsFirstRender hook, this hook is a useful for determining whether the current render is the first render of a component.

Copy link
Member

@ThaNarie ThaNarie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few comments, otherwise 👍

@firstchair firstchair requested a review from ThaNarie March 1, 2024 13:46
@ReneDrie ReneDrie requested a review from leroykorterink May 9, 2025 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants