Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Jul 13, 2021

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@emotion/[email protected]

Minor Changes

  • #2521 516fe458 Thanks @mnajdova! - Add insertionPoint option to the EmotionCache, to insert rules after the specified element.

    const head = document.querySelector('head')
    
    // <meta name="emotion-insertion-point" content="">
    const emotionInsertionPoint = document.createElement('meta')
    emotionInsertionPoint.setAttribute('name', 'emotion-insertion-point')
    emotionInsertionPoint.setAttribute('content', '')
    
    head.appendChild(emotionInsertionPoint)
    
    // the emotion sheets should be inserted right after the meta tag
    const cache = createCache({
      key: 'my-app',
      insertionPoint: emotionInsertionPoint
    })
    
    function App() {
      return (
        <CacheProvider value={cache}>
          <Main />
        </CacheProvider>
      )
    }

Patch Changes

@emotion/[email protected]

Minor Changes

  • #2521 516fe458 Thanks @mnajdova! - Add insertionPoint option to the EmotionCache, to insert rules after the specified element.

    const head = document.querySelector('head')
    
    // <meta name="emotion-insertion-point" content="">
    const emotionInsertionPoint = document.createElement('meta')
    emotionInsertionPoint.setAttribute('name', 'emotion-insertion-point')
    emotionInsertionPoint.setAttribute('content', '')
    
    head.appendChild(emotionInsertionPoint)
    
    // the emotion sheets should be inserted right after the meta tag
    const cache = createCache({
      key: 'my-app',
      insertionPoint: emotionInsertionPoint
    })
    
    function App() {
      return (
        <CacheProvider value={cache}>
          <Main />
        </CacheProvider>
      )
    }

@github-actions github-actions bot force-pushed the changeset-release/main branch from 43dfe96 to 04bf329 Compare November 9, 2021 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant