Skip to content

Commit

Permalink
Enhance changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Apr 11, 2023
1 parent be14cd9 commit 283aa48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fix-component-rerenders-router.md
@@ -0,0 +1,5 @@
---
"@remix-run/router": patch
---

Deprecate the `createRouter` `detectErrorBoundary` option in favor of the new `mapRouteProperties` option for converting a framework-agnostic route to a framework-aware route. This allows us to set more than just the `hasErrorBoundary` property during route pre-processing, and is now used for mapping `Component -> element` and `ErrorBoundary -> errorElement` in `react-router`.
3 changes: 1 addition & 2 deletions .changeset/fix-component-rerenders.md
@@ -1,7 +1,6 @@
---
"react-router": patch
"react-router-dom": patch
"@remix-run/router": patch
---

Fix inadvertent re-renders when using `Component` instead of `element`
Fix inadvertent re-renders when using `Component` instead of `element` on a route definition

0 comments on commit 283aa48

Please sign in to comment.