-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#1739] 🐛 Fix infinite loop for search page filters #762
Conversation
40e79db
to
4d6779a
Compare
Codecov Report
@@ Coverage Diff @@
## develop #762 +/- ##
========================================
Coverage 93.58% 93.58%
========================================
Files 697 697
Lines 24595 24595
========================================
Hits 23016 23016
Misses 1579 1579 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, an interval.. 😕 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code comment is misleading, other than that looks fine.
6d1ac3c
to
b62d4c5
Compare
https://taiga.maykinmedia.nl/project/open-inwoner/issue/1739
let
'instead of 'var
' for scopesetInterval
withsetTimeout
to avoid continuous looping. Code inside setTimeout will execute once after the specified delay (250 milliseconds)timerId
to null instead of zero is a common practice in JavaScript when using variables to represent timers or intervals + makes it clear that the timerId variable is not currently associated with any active timer - a way to indicate that there is no ongoing timer operation.