router icon indicating copy to clipboard operation
router copied to clipboard

feat(start): move `scripts`,`links`, and `meta` to the `head`

Open SeanCassiere opened this issue 1 year ago • 2 comments

Closes #2426

As discussed in #2426, this change adds a new method named head onto Route. This function takes in the same parameters as meta and returns the values used for scripts, links, and meta. Additionally, the loaderData argument is made to be possibly undefined as this execution may happen both before and after the loader has resolved.

The meta, links, and scripts methods on Route as being dropped and replaced by this new head method.

SeanCassiere avatar Oct 18 '24 02:10 SeanCassiere

☁️ Nx Cloud Report

CI is running/has finished running commands for commit cca0d77e26f253556eb1906d4727dab376bfd851. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

nx-cloud[bot] avatar Oct 18 '24 02:10 nx-cloud[bot]

Open in Stackblitz

More templates

@tanstack/create-router

pnpm add https://pkg.pr.new/@tanstack/create-router@2571
@tanstack/arktype-adapter

pnpm add https://pkg.pr.new/@tanstack/arktype-adapter@2571
@tanstack/history

pnpm add https://pkg.pr.new/@tanstack/history@2571
@tanstack/eslint-plugin-router

pnpm add https://pkg.pr.new/@tanstack/eslint-plugin-router@2571
@tanstack/react-cross-context

pnpm add https://pkg.pr.new/@tanstack/react-cross-context@2571
@tanstack/react-router-with-query

pnpm add https://pkg.pr.new/@tanstack/react-router-with-query@2571
@tanstack/react-router

pnpm add https://pkg.pr.new/@tanstack/react-router@2571
@tanstack/router-cli

pnpm add https://pkg.pr.new/@tanstack/router-cli@2571
@tanstack/router-devtools

pnpm add https://pkg.pr.new/@tanstack/router-devtools@2571
@tanstack/router-generator

pnpm add https://pkg.pr.new/@tanstack/router-generator@2571
@tanstack/router-plugin

pnpm add https://pkg.pr.new/@tanstack/router-plugin@2571
@tanstack/router-vite-plugin

pnpm add https://pkg.pr.new/@tanstack/router-vite-plugin@2571
@tanstack/start

pnpm add https://pkg.pr.new/@tanstack/start@2571
@tanstack/start-vite-plugin

pnpm add https://pkg.pr.new/@tanstack/start-vite-plugin@2571
@tanstack/valibot-adapter

pnpm add https://pkg.pr.new/@tanstack/valibot-adapter@2571
@tanstack/virtual-file-routes

pnpm add https://pkg.pr.new/@tanstack/virtual-file-routes@2571
@tanstack/zod-adapter

pnpm add https://pkg.pr.new/@tanstack/zod-adapter@2571

commit: cca0d77

pkg-pr-new[bot] avatar Oct 18 '24 02:10 pkg-pr-new[bot]