mirror of
https://github.com/plausible/analytics.git
synced 2024-12-24 01:54:34 +03:00
5a58b5cb99
* 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 |
||
---|---|---|
.. | ||
css | ||
js | ||
.eslintrc.json | ||
.prettierignore | ||
.prettierrc.json | ||
.stylelintrc.json | ||
package-lock.json | ||
package.json | ||
tailwind.config.js |