Contribute to RohitRathore2008/Student-utility-system development by creating an account on GitHub.
If you add the state to the dependency array, the timer resets every time the user types a character. This ruins performance and breaks your timing logic. You solve this with the Mutable Ref Pattern.
I see the issue clearly from your screenshot.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results