Fix functions so we can get rid of eslint-disable-next-line react-hooks/exhaustive-deps
This code disables warnings for useEffects etc that have missing dependencies.
`eslint-disable-next-line react-hooks/exhaustive-deps`
I used it where there are functions being called into the useEffect. There are ways to code functions so they don’t cause rerenders when they are ran. We need to code them that way if possible. If not we can keep the rule disabling.