Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Deprecate passing functions to css and cx #643

Merged
merged 3 commits into from
May 18, 2018

Conversation

emmatown
Copy link
Member

@emmatown emmatown commented May 5, 2018

What:
Deprecate passing functions to css and cx

Why:
I don't think that supporting these really adds anything useful to the API and we have to make sure to support even if few/no people use it.

Also, especially for css, I think it could be confusing knowing that css calls accept functions because people might think that they get called with props like in styled-components so not allowing it means that we can have a nice warning for people that explains what they should do instead.

How:
Add dev warnings

Checklist:

  • Documentation
  • Tests
  • Code complete

@emmatown emmatown requested a review from tkh44 May 5, 2018 10:43
@codecov
Copy link

codecov bot commented May 5, 2018

Codecov Report

Merging #643 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted Files Coverage Δ
packages/create-emotion/src/index.js 100% <100%> (ø) ⬆️
packages/create-emotion/src/utils.js 100% <100%> (ø) ⬆️

@tkh44 tkh44 merged commit 7ef8f2c into master May 18, 2018
@tkh44 tkh44 deleted the deprecate-functions-in-css-and-cx branch May 18, 2018 16:55
@emmatown emmatown mentioned this pull request May 20, 2018
2 tasks
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.

2 participants