todomvc icon indicating copy to clipboard operation
todomvc copied to clipboard

Wait for potential asynchronous code before updating counts and views

Open rosano opened this issue 2 months ago • 0 comments

Sharing this for informational purposes. Feel free to close, if it's not relevant.


Seems like these filter calls are not waiting for the CRUD operations to complete. This isn't really an issue when using the synchronous MemoryStore, but if there's asynchronous code (such as my demo storing data remotely it may not update the counts incorrectly.

If it's useful to keep the code broad in this way, it may require other modifications too; this is more of a hint if anyone is doing something similar.

rosano avatar Oct 01 '25 14:10 rosano