Skip to content

Commit 983fb2d

Browse files
authored
docs: remove 'import type' declaration in javascript snippet (#9180)
1 parent 2276dfb commit 983fb2d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

website/docs/advanced/client.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ For every route transition, there will be several important timings:
137137
Note that the new page's DOM is only available during event (4). If you need to manipulate the new page's DOM, you'll likely want to use `onRouteDidUpdate`, which will be fired as soon as the DOM on the new page has mounted.
138138

139139
```js title="myClientModule.js"
140-
import type {Location} from 'history';
141-
142140
export function onRouteDidUpdate({location, previousLocation}) {
143141
// Don't execute if we are still on the same page; the lifecycle may be fired
144142
// because the hash changes (e.g. when navigating between headings)

0 commit comments

Comments
 (0)