Repository navigation
fix: Room - No animation when returning to room settings after saving new room description. #54623
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,14 +65,14 @@ function WorkspaceProfileDescriptionPage({policy}: Props) { | |
|
|
||
| Policy.updateWorkspaceDescription(policy.id, values.description.trim(), policy.description ?? ''); | ||
| Keyboard.dismiss(); | ||
| Navigation.goBack(); | ||
| Navigation.setNavigationActionToMicrotaskQueue(() => Navigation.goBack()); | ||
| }, | ||
| [policy], | ||
| ); | ||
|
|
||
| return ( | ||
| <AccessOrNotFoundWrapper | ||
| policyID={policy?.id ?? '-1'} | ||
| policyID={policy?.id} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we applying changes that don't look related to our issue?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I updated it because now we can't use default string values as fallback, please refer to the above link. |
||
| accessVariants={[CONST.POLICY.ACCESS_VARIANTS.ADMIN]} | ||
| > | ||
| <ScreenWrapper | ||
|
|
||
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.
useOnyxdoes not delay the page till this value is loaded. So, if this page is refreshed, the initial value isundefinedand the default value for the input becomes an unexpected value. More details here #58967