Commit e708aa5
fix(frontend): Debounce URL updates in search to prevent pushState spam
Move onQueryChange callback inside the debounced timeout to prevent
excessive history.pushState() calls when typing quickly in the search
input. Previously, the callback was called immediately on every
keystroke which could trigger >100 pushState calls in 10 seconds,
causing a SecurityError in browsers.
Fixes: FREUNDEBUCH-FRONTEND-M1 parent 9a5f604 commit e708aa5
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 95 | | |
99 | 96 | | |
100 | 97 | | |
| |||
108 | 105 | | |
109 | 106 | | |
110 | 107 | | |
| 108 | + | |
| 109 | + | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | 115 | | |
| 116 | + | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
0 commit comments