Skip to content

Commit 3731013

Browse files
committed
fix #264: Add note about transitions
1 parent 99baa51 commit 3731013

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,13 @@ export default function App() {
218218

219219
The colon indicates that `id` can be any string, and as long as the URL fits that pattern, the `User` component will show.
220220

221-
You can then access that `id` from within a route component with `useParams`:
221+
You can then access that `id` from within a route component with `useParams`.
222+
223+
> **Note on Animation/Transitions**:
224+
> Routes that share the same path match will be treated as the same route. If you want to force re-render you can wrap your component in a keyed `<Show>` like:
225+
> ```js
226+
><Show when={params.something} keyed><MyComponent></Show>
227+
>```
222228
223229
---
224230

0 commit comments

Comments
 (0)