Closed kmcginnes closed 3 months ago
In the search modal when the user selects a search result you would see a error in the browser's console.
This was caused by the use of setTimeout() within a useEffect(). This is almost never a good idea.
setTimeout()
useEffect()
I have replaced it with useTransition(), which is the React supported way of delaying a task until the next render.
useTransition()
The original error
pnpm checks
pnpm test
Changelog.md
@vkagamlyk Fixed
Description
In the search modal when the user selects a search result you would see a error in the browser's console.
This was caused by the use of
setTimeout()
within auseEffect()
. This is almost never a good idea.I have replaced it with
useTransition()
, which is the React supported way of delaying a task until the next render.Validation
The original error
Related Issues
Check List
pnpm checks
to ensure code compiles and meets standards.pnpm test
to check if all tests are passing.Changelog.md
.