Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/routes/explore.$deviceId.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useState } from 'react'
import {
type LoaderFunctionArgs,
type MetaFunction,
Outlet,
useLoaderData,
useMatches,
Expand Down Expand Up @@ -85,6 +86,12 @@ export async function loader({ params, request }: LoaderFunctionArgs) {
return data
}

export const meta: MetaFunction<typeof loader> = ({ loaderData }) => {
return [
{ title: `${loaderData?.device?.name}` }
]
}

// Defining the component that will render the page
export default function DeviceId() {
// Retrieving the data returned by the loader using the useLoaderData hook
Expand Down
Loading