Skip to content

Commit

Permalink
feat: object delete batch
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Aug 8, 2023
1 parent 4cafcb4 commit d1654b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sixty-badgers-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@siafoundation/react-renterd': minor
---

Added batch flag to useObjectDelete.
2 changes: 1 addition & 1 deletion libs/react-renterd/src/bus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ export function useObjectAdd(
}

export function useObjectDelete(
args?: HookArgsCallback<{ key: string }, void, never>
args?: HookArgsCallback<{ key: string; batch: boolean }, void, never>
) {
return useDeleteFunc(
{ ...args, route: '/bus/objects/:key' },
Expand Down

0 comments on commit d1654b5

Please sign in to comment.