Near-Infinite Loop on search page
steps to reproduce:
- go to
https://exams.vis.ethz.ch/search
- search for
information security
- the page should appear to hang
running the firefox profiler told me it spent a lot of time here (91%):
text [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:1741281]
oo [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:1008712]
$s [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:1060188]
Tc [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:1048372]
Oc [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:1048291]
Ac [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:1048106]
bc [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:1045000]
34463/Xi/< [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:994593]
36813/t.unstable_runWithPriority [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:1121076]
Yi [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:994389]
Xi [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:994529]
$i [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:994473]
pc [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:1042319]
Mo [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:1013779]
As/F< [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:1363148]
us/i< [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:1356046]
value [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:1360016]
value/Es< [https://exams.vis.ethz.ch/static/js/main.69a21eb5.js:2:1360632]
promise callback
it seems to be this loop: frontend/src/components/markdown-text.tsx#L71
no idea of js/ts so I won't try to fix it