If I am not using getx, is there a way to not check isMounted
in Flutter when using async function? Refer to Do not use BuildContexts across async gaps, it looks like we need to check context.mounted
every time after async.
React says this is an anti-pattern https://reactjs.org/blog/2015/12/16/ismounted-antipattern.html.
I am curious if there is a better way to resolve this