-
-
Notifications
You must be signed in to change notification settings - Fork 1k
feat: use generic default meta tags unless not overridden #4274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: alpha
Are you sure you want to change the base?
Conversation
nrjdalal
commented
May 30, 2025
- packages/react-router/src/HeadContent.tsx
- packages/react-router/tests/Scripts.test.tsx
packages/react-router/src/HeadContent.tsx packages/react-router/tests/Scripts.test.tsx examples/react/start-workos/src/tanstack-start.d.ts
examples/react/start-workos/src/tanstack-start.d.ts
View your CI Pipeline Execution ↗ for commit 2dca19b.
☁️ Nx Cloud last updated this comment at |
More templates
@tanstack/arktype-adapter
@tanstack/directive-functions-plugin
@tanstack/eslint-plugin-router
@tanstack/history
@tanstack/react-router
@tanstack/react-router-devtools
@tanstack/react-router-with-query
@tanstack/react-start
@tanstack/react-start-client
@tanstack/react-start-plugin
@tanstack/react-start-server
@tanstack/router-cli
@tanstack/router-core
@tanstack/router-devtools
@tanstack/router-devtools-core
@tanstack/router-generator
@tanstack/router-plugin
@tanstack/router-utils
@tanstack/router-vite-plugin
@tanstack/server-functions-plugin
@tanstack/solid-router
@tanstack/solid-router-devtools
@tanstack/solid-start
@tanstack/solid-start-client
@tanstack/solid-start-plugin
@tanstack/solid-start-server
@tanstack/start-client-core
@tanstack/start-plugin-core
@tanstack/start-server-core
@tanstack/start-server-functions-client
@tanstack/start-server-functions-fetcher
@tanstack/start-server-functions-server
@tanstack/valibot-adapter
@tanstack/virtual-file-routes
@tanstack/zod-adapter
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please export the defaultMeta
out of router-core
and have them the imported into @tanstack/react-router
and @tanstack/solid-router
.
Perhaps even have the defaultMeta.forEach(...)
bit as a function so the behaviour can be centralized.
will make the changes shortly |
…s.test.tsx index.ts tanstack... packages/router-core/src/defaultMeta.ts packages/react-router/src/HeadContent.tsx packages/solid-router/src/HeadContent.tsx packages/solid-router/tests/Scripts.test.tsx packages/router-core/src/index.ts examples/react/start-workos/src/tanstack-start.d.ts
packages/router-core/src/defaultMeta.ts
packages/router-core/src/defaultMeta.ts examples/react/start-workos/src/tanstack-start.d.ts
packages/router-core/src/index.ts examples/react/start-workos/src/tanstack-start.d.ts packages/router-core/src/{defaultMeta.ts
@birkskyum would this be the "correct" way to do this for Solid? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks okay to me. Awaiting @birkskyum's thoughts on this.
packages/router-core/src/head-content.ts examples/react/start-workos/src/tanstack-start.d.ts
In solid it's called e.g. |
attrs: Record<string, string> | ||
}> = [ | ||
{ | ||
key: 'charSet', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the line specifically i'm thinking won't work with solid
it is case insensitive I guess, could always make em small, be that react/solid could make transformer/matcher |