A small component shows a list of task tags and lets you quickly remove a tag from the panel without waiting for the server response. After a recent PR, the behavior became unstable on errors and when there are repeated tag names. You need to review the diff and find the causes.
initialTags.id, not by text.StrictMode.Bug and one tag Docs.remove for Docs, then immediately for one of the Bug tags.Bug tags ends with a server error.Docs must not affect which of the two Bug tags disappears.19.0.0, React DOM 19.0.05.8.x6.xdevelopment with StrictMode and regular productionremoveTag(id: string): Promise<{ ok: true }>; on failure the promise rejects with ErrorfakeApi.tsUse line comments to explain the problem, its impact, the fix and how to test it.