How to use the @emotion/utils.getRegisteredStyles.bind function in @emotion/utils

To help you get started, we’ve selected a few @emotion/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github emotion-js / emotion / packages / create-emotion / src / index.js View on Github external
injectGlobal,
    keyframes,
    hydrate(ids: Array) {
      ids.forEach(key => {
        cache.inserted[key] = true
      })
    },
    flush() {
      cache.registered = {}
      cache.inserted = {}
      cache.sheet.flush()
    },
    // $FlowFixMe
    sheet: cache.sheet,
    cache,
    getRegisteredStyles: getRegisteredStyles.bind(null, cache.registered),
    merge: merge.bind(null, cache.registered, css)
  }
}

@emotion/utils

internal utils for emotion

MIT
Latest version published 1 month ago

Package Health Score

84 / 100
Full package analysis

Similar packages