You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-tabs/resource-tabs.tsx
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -265,18 +265,22 @@ export function ResourceTabs({
265
265
setSelectedIds(newSet())
266
266
anchorIdRef.current=null
267
267
}
268
-
// Serialize mutations so each onMutate sees the cache from the prior one;
269
-
// calling .mutate() in a loop races the optimistic updates and the observer
270
-
// discards all but the last in-flight mutation.
268
+
// Serialize mutations so each onMutate sees the cache updated by the prior
269
+
// one. Continue on individual failures so remaining removals still fire.
0 commit comments