Skip to content

Commit

Permalink
Remove batched API from changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Jun 27, 2024
1 parent 248a7fc commit 0b4f1bd
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .changeset/lovely-apples-help.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,3 @@
---

Trigger a new `router.routes` identity/reflow during fog of war route patching

- This also adds a new batched API for `router.patchRoutes` so you can perform multiple patches but only a single reflow at the end:

```js
// Apply one patch and reflow
router.patchRoutes(parentId, children);

// Apply multiples patches and a single reflow
router.patchRoutes((patch) => {
patch(parentId, children);
patch(parentId2, children2);
patch(parentId3, children3);
});
```

0 comments on commit 0b4f1bd

Please sign in to comment.