Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Identity-based idempotency support for next/head #21

Closed
rauchg opened this issue Oct 16, 2016 · 1 comment
Closed

Identity-based idempotency support for next/head #21

rauchg opened this issue Oct 16, 2016 · 1 comment

Comments

@rauchg
Copy link
Member

rauchg commented Oct 16, 2016

We can have a declarative way of ensuring an element appears at-most-once in the <head>. We de-dupe based on the id attribute of an element. It could also be key but not sure if that interferes with React internals.

<Head>
  <style id="woot">{`
    /* this element will be appended at-most-once */
    /* even if it appears in multiple components */
  `}</style>
</Head>
@rauchg rauchg changed the title Identity support for next/head Identity-based idempotency support for next/head Oct 17, 2016
timneutkens pushed a commit to timneutkens/next.js that referenced this issue Jan 5, 2017
@timneutkens
Copy link
Member

Closing this based on #668 (comment)

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants