analytics/assets
RobertJoonas 5a58b5cb99
Fix debounce (#4349)
* Replace useDebouncedEffect with useDebounce

This commit refactors the debouncing mechanism in a more extendable way.
Using debounce as a hook that returns a callback (rather than an effect)
makes it reusable for Combobox. This way the useDebounce hook does not
need to worry about whether the function should be called on the first
render or not.

This commit also gets rid of redundant doubled search state.

* rename input to search in Combobox

* Fix debounce in Combobox

* remove debounce-promise

* Fix React CI warnings in PlausibleCombobox

* Silence NPM CI in custom-hooks.js

* cancel scheduled API calls in useDebounce hook when unmounted
2024-07-16 12:15:45 +03:00
..
css Improve print dashboard css (#3754) 2024-02-07 08:57:39 +01:00
js Fix debounce (#4349) 2024-07-16 12:15:45 +03:00
.eslintrc.json Alleviate props passing: institute UserContext, QueryContext, SiteContext (#4334) 2024-07-10 17:02:05 +03:00
.prettierignore 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 2021-10-11 14:48:19 +02:00
.prettierrc.json Fix svg favicons (#2295) 2022-10-04 13:20:51 +03:00
.stylelintrc.json Add eslint, stylelint, prettier, and pre-commit (#484) 2020-12-23 10:45:53 +02:00
package-lock.json Fix debounce (#4349) 2024-07-16 12:15:45 +03:00
package.json Fix debounce (#4349) 2024-07-16 12:15:45 +03:00
tailwind.config.js Snippet integration verification (#4106) 2024-05-23 15:00:50 +02:00