wordpress-mobile / WordPress-iOS-Shared

Shared components used in building the WordPress iOS apps and other library components
GNU General Public License v2.0
18 stars 22 forks source link

Improves the debouncer for ad-hoc callbacks. #300

Closed diegoreymendez closed 2 years ago

diegoreymendez commented 2 years ago

Improves the debouncer for ad-hoc callbacks.

Basically we need the debouncer to support the modification of the callback, so that we can specify parameters that are unique to each scheduled call.

Testing:

To test this, use the WordPress iOS PR.

  1. Start the domain registration flow.
  2. In the domain suggestions screen, start typing with the device keyboard.

Make sure the whole experience looks fine, and works fine. The search should trigger after 0.5 seconds since the last keypress.

Associated PRs:

WordPress iOS PR: https://github.com/wordpress-mobile/WordPress-iOS/pull/17266