Colton Idle
08/01/2023, 7:04 PMCRamsan
08/01/2023, 7:19 PMFrancesc
08/01/2023, 7:46 PMFrancesc
08/01/2023, 7:49 PMEmre
08/01/2023, 9:01 PMFrancesc
08/01/2023, 9:05 PMEmre
08/02/2023, 6:42 PMzhuinden
08/02/2023, 6:51 PMFrancesc
08/02/2023, 6:51 PMFrancesc
08/02/2023, 6:54 PMWhen using MVI, this would require evaluating the results for every single character in order to get the latest list, even though we only care about the latest user input.
Theoretically with reactive operators, we could use either debounce (to reduce the number of requests within a given time frame) and switchMap/flatMapLatest, however using a state reducer makes this impossible. You cannot skip state evaluation!
this is not true, you can do debouncing on MVI. You can use a middleware to handle asynchronous operations while the reducer is solely responsible for synchronosly updating the state. The middleware can do debouncing and push a request to the reducer to update the state only after the debounce timeout has lapsed.Emre
08/02/2023, 8:12 PMFrancesc
08/02/2023, 8:23 PM