-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Announce a breaking change of added dispose()
.
#9397
Conversation
Visit the preview URL for this PR (updated for commit d0cd593): https://flutter-docs-prod--pr9397-polina-c-dispose-h8iaiomp.web.app (expires Mon, 25 Sep 2023 18:16:22 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: d5ba327eec813901cac8396c4f458b02288624ab |
dispose()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@polina-c : A few suggestions which you can accept or not. LGTM % your review of those suggestions.
If you got error like `Once you have called dispose() on a <class name>, it can no longer be used.`, | ||
and the error is raised for your code, | ||
update the code to call `dispose()' only in cases when your code created the object. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: Write as shorter sentences per GSG.
If you got error like `Once you have called dispose() on a <class name>, it can no longer be used.`, | |
and the error is raised for your code, | |
update the code to call `dispose()' only in cases when your code created the object. | |
If the following error was raised for your code, | |
update the code to call `dispose()' only in cases when your code created the object. | |
```nocode | |
Once you have called dispose() on a <class name>, it can no longer be used. | |
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the grammar:
If you encounter the following error, then check for
that condition:
Once you have called dispose() on a <class name>, it can no longer be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shams, in most cases, the code should not be removed, but condition should be added. So, it should be fixed, not removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few grammatical improvements.
If you got error like `Once you have called dispose() on a <class name>, it can no longer be used.`, | ||
and the error is raised for your code, | ||
update the code to call `dispose()' only in cases when your code created the object. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the grammar:
If you encounter the following error, then check for
that condition:
Once you have called dispose() on a <class name>, it can no longer be used.
Co-authored-by: Anthony Sansone <[email protected]>
Co-authored-by: Shams Zakhour (ignore Sfshaza) <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but @goderbauer should review before merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Discussion: https://docs.google.com/document/d/1ec5djPP14b1u93O9fHrJJf3gbONay1nV4sBV2-XXOIw/edit?resourcekey=0-CFEu4HWAW8yP0knhoVfKxQ
This announce is added as already released, because we are adding
dispose
already long time and some of the changes may be already released: flutter/devtools#3951Tech writers, please do not merge this before tech sign off. @goderbauer , can you review please?