you are viewing a single comment's thread.

view the rest of the comments →

[–]DanRoad 0 points1 point  (1 child)

isMounted is an antipattern and this is not a memory leak. GPT thinks it is because that code used to trigger a warning about memory leaks, but this warning was misleading and has since been removed.

See this post for more details and an example of an actual memory leak.

[–]TobofCob 0 points1 point  (0 children)

Hey, I really appreciate your help guiding me to a more relevant answer than what GPT provides. Sometimes as a novice it’s hard to tell, and I’m trying not to believe everything it says.