Skip to content

Commit f89de89

Browse files
Fix imports to @solidjs/router, solid-router is an old package (#747)
1 parent 4353cc9 commit f89de89

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/routes/solid-router/advanced-concepts/lazy-loading.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ In Solid Router, you can lazy load components using the `lazy` function from Sol
99

1010
```jsx
1111
import { lazy } from "solid-js";
12-
import { Router, Route } from "solid-router";
12+
import { Router, Route } from "@solidjs/router";
1313

1414
const Home = () => import("./Home");
1515
const Users = lazy(() => import("./Users"));

src/routes/solid-router/concepts/catch-all.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To create a catch-all route, place a route with a asteriks `*` as the path at th
99
Optionally, you can name the parameter to access the unmatched part of the URL.
1010

1111
```jsx
12-
import { Router, Route } from "solid-router";
12+
import { Router, Route } from "@solidjs/router";
1313

1414
import Home from "./Home";
1515
import About from "./About";

src/routes/solid-router/concepts/path-parameters.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If a force re-render is needed, you can wrap your component in a keyed [`Show`](
3232
You can retrieve the values captured by parameters using [`useParams`](/solid-router/reference/primitives/use-params).
3333

3434
```jsx frame="terminal" title="http://localhost:3000/users/123"
35-
import { useParams } from "solid-router";
35+
import { useParams } from "@solidjs/router";
3636

3737
function User() {
3838
const params = useParams();

src/routes/solid-router/concepts/search-parameters.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ In Solid Router, these query parameters can be accessed using [`useSearchParams`
99
This primitive retrieves a tuple that contains a reactive object that reads the current search parameters and a function to update them.
1010

1111
```jsx {4}
12-
import { useSearchParams } from "solid-router";
12+
import { useSearchParams } from "@solidjs/router";
1313

1414
export const App = () => {
1515
const [searchParams, setSearchParams] = useSearchParams();
@@ -53,7 +53,7 @@ setSearchParams({
5353
If you require accessing the query string directly, you can use the [`useLocation`](/solid-router/reference/primitives/use-location) primitive:
5454

5555
```jsx
56-
import { useLocation } from "solid-router";
56+
import { useLocation } from "@solidjs/router";
5757

5858
export const App = () => {
5959
const location = useLocation();

0 commit comments

Comments
 (0)