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

Update warnings #275

Merged
merged 3 commits into from
Oct 13, 2020
Merged

Update warnings #275

merged 3 commits into from
Oct 13, 2020

Conversation

peduarte
Copy link
Contributor

Some updates to our console.warn's

  • Warning about inline media queries: don't display it in prod and improve the description
  • Warning about dynamic css prop: removed. Its raising too many questions and we don't have enough data for it. We'll consider re-adding when benchmarks are done (Benchmarking #261)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 12, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8972a8a:

Sandbox Source
Stitches CI: Next.js Configuration
Stitches CI: CRA Configuration

Copy link
Contributor

@jonathantneal jonathantneal left a comment

Choose a reason for hiding this comment

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

This is a quality improvement. Thank you! 🚢

Copy link
Member

@hadihallak hadihallak left a comment

Choose a reason for hiding this comment

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

Looks good 💯

Just added one small note.

expect(console.warn).toHaveBeenCalledWith(
`The property "color" with media query ${mediaString} can cause a specificity issue. You should create a breakpoint`
);
expect(console.warn).toHaveBeenCalled();
Copy link
Member

Choose a reason for hiding this comment

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

I think we should check the message here just so that this doesn't catch some other random warning by a mistake

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@peduarte peduarte merged commit 54da817 into canary Oct 13, 2020
@peduarte peduarte deleted the update-warnings branch October 13, 2020 09:21
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.

3 participants