damirarh / damirscorner-utterances

utteranc.es comments for https://damirscorner.com
0 stars 0 forks source link

/blog/posts/20220408-DebounceSearchCallsInAngular.html #134

Open damirarh opened 1 year ago

damirarh commented 1 year ago

Imported

URL: https://www.damirscorner.com/blog/posts/20220408-DebounceSearchCallsInAngular.html

damirarh commented 1 year ago

Imported comment written by bluebaronca on 2022-10-13T08:04:51

Apparently if you put the debounce and SwitchMap to the HTTP side, if there's an existing HTTP request, it will actually cancel the request. This works in ngrx with effects. I just wish I knew how to do it with the HttpClient directly.

damirarh commented 1 year ago

Imported comment written by imbk_dev on 2022-10-21T22:11:05

If you use ngrx, that's taken care of automatically when you use fetch run in your effects.