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
Warn for string refs where owner != __self #7091
Comments
Would this likely be done in |
Probably would be a separate dev tool that sanity checked the element when the element is being mounted. But we'll need to fix the transform first, since I don't think we're even using the |
Which transform are you referring to? I'd like to take a look at this if possible.
Do you mean |
Sorry, yeah,
|
How would this affect people who use |
@keyanzhang They miss out on a potentially useful warning. Unfortunately, there really isn't much we can do to make their experience any better, AFAIK. |
cc @facebook/react-core Public API change. |
Well you could also make a transform that adds __self to We always wanted to log this internally – not 100% sure it makes sense to give a warning externally too? I guess it's probably reasonable. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution. |
This is something we actually should do soon as part of deprecations work. If we first get rid of these edge cases then it will allow us to write a codemod for string refs. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
bump |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
Bump |
This is closed by #17864. |
Sebastian wants to warn when
owner !== __self
, because this is the hard case to find when codemodding from string refs to callback refs.The text was updated successfully, but these errors were encountered: