0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

Reduce debounce timeout

This commit is contained in:
Florian Schroedl 2024-06-21 17:18:56 +02:00
parent dd62c7fe18
commit 39eb964cb7

View file

@ -125,7 +125,7 @@
(defn use-debonced-resolve-callback (defn use-debonced-resolve-callback
[name-ref token tokens callback & {:keys [cached timeout] [name-ref token tokens callback & {:keys [cached timeout]
:or {cached {} :or {cached {}
timeout 500}}] timeout 160}}]
(let [timeout-id-ref (mf/use-ref nil) (let [timeout-id-ref (mf/use-ref nil)
cache (mf/use-ref cached) cache (mf/use-ref cached)
debounced-resolver-callback debounced-resolver-callback