From 983fb2d273d5af34da49ea98b307df7c42547b2c Mon Sep 17 00:00:00 2001 From: Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> Date: Thu, 27 Jul 2023 14:07:57 +0100 Subject: [PATCH] docs: remove 'import type' declaration in javascript snippet (#9180) --- website/docs/advanced/client.mdx | 2 -- 1 file changed, 2 deletions(-) diff --git a/website/docs/advanced/client.mdx b/website/docs/advanced/client.mdx index 189faab8ba56..88762bd36209 100644 --- a/website/docs/advanced/client.mdx +++ b/website/docs/advanced/client.mdx @@ -137,8 +137,6 @@ For every route transition, there will be several important timings: 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. ```js title="myClientModule.js" -import type {Location} from 'history'; - export function onRouteDidUpdate({location, previousLocation}) { // Don't execute if we are still on the same page; the lifecycle may be fired // because the hash changes (e.g. when navigating between headings)