Check function in useIsAuthenticated
changes too frequently leading to continuous loops if added to dependencies
#1905
Labels
Describe the bug
req: check
in theuseIsAuthenticated
hook is an anonymous function that keeps changing so we can't use it as a dependency without causing loopsIs this a UI bug or a server bug?
What is the severity of the bug
severity/Low
: Doesn’t affect primary flow/functionality but would be good to fixEnvironment
Main prior to the removal of AddApplication.
To Reproduce
Add
check
as a dependency touseEffect
in theAddApplication
component.Expected behavior
We should we able to add the dependency without causing a loop. To solve this we'll be wrapping
req
inuseIsAuthenticated
in auseCallback
to limit the amount of times the function changes.The text was updated successfully, but these errors were encountered: