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

Downgrade ComposeCompositionLocalUsage to warning #52

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

chrisbanes
Copy link
Collaborator

Showing an error is too strong for developers using a CompositionLocal. We could even downgrade this to
INFORMATIONAL, but warning is fine for now.

Showing an error is too strong for developers using a
CompositionLocal. We could even downgrade this to
INFORMATIONAL, but warning is fine for now.
@ZacSweers
Copy link
Collaborator

Since we offer an allow list, are you sure?

@chrisbanes
Copy link
Collaborator Author

Yeah, CompositionLocals shouldn't be avoided at all costs. Yes, they create implicit dependencies, but they're also useful in certain situations. Keeping them as error is the wrong default imo.

@chrisbanes chrisbanes merged commit 3975762 into main Feb 10, 2023
@chrisbanes chrisbanes deleted the cb/compositionlocal-warning branch February 10, 2023 17:59
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