T
TanStack3mo ago
like-gold

deduplicate LD+json

could we have a way to identify script tags in route head via an id/key so we can deduplicate them (unlike say a link rel which is easy to dedupe)? right now i am seeing that if i have an ld+json in the root.tsx and one in the route, i end up with 4 or even 6 ld json script tags
6 Replies
afraid-scarlet
afraid-scarlet3mo ago
how do other APIs handle this? unhead, helmet...? we could also allow postprocessing of route head stuff via a callback
like-gold
like-goldOP3mo ago
Unhead
Tag Deduplication · Unhead
Learn how Unhead manages duplicate tags across your application with automatic deduplication.
like-gold
like-goldOP3mo ago
not sure about helmet
afraid-scarlet
afraid-scarlet3mo ago
ok can you please collect some more state of the art then we can decide which way we want to go
like-gold
like-goldOP3mo ago

Did you find this page helpful?