how to handle addTag that returns a promise?
jabbermarky opened this issue · 1 comments
jabbermarky commented
I would like to save my new tag in my database. this save process returns a promise. What is the proper way to handle that in your addTag method?
calvinlough commented
To be honest I hadn't considered this use case. What you could do is immediately add it to the tags array and then remove it if the save fails. I would also draw it at 50% opacity or something until the save finishes. This should be possible since you're in control of rendering each tag.