Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

fix(getGlamorClassName): don't attempt to merge class names that aren't from glamor #415

Merged
merged 1 commit into from
Apr 30, 2018

Conversation

emmatown
Copy link
Contributor

@emmatown emmatown commented Apr 30, 2018

What:

Don't attempt to merge class names that aren't from glamor

Why:

So that if you pass an emotion class name to a glamorous component an error won't be thrown. this CodeSandbox shows what happens without this fix

How:

Check if a class name is on glamor's registered cache before treating it as a glamor class name

Checklist:

  • Documentation N/A
  • Tests
  • Ready to be merged
  • Added myself to contributors table

Copy link
Contributor

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super! Thanks!

@kentcdodds
Copy link
Contributor

I'm not sure why CI is messed up, but I'm going to guess that everything's fine...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants