Skip to content

Commit

Permalink
Merge pull request #25957 from margelo/fix/composer-jerking-after-#25758
Browse files Browse the repository at this point in the history
Make sure composer doesn't render in loading state (null)
  • Loading branch information
mountiny authored Aug 25, 2023
2 parents 9958c30 + a66bcbf commit e322e0c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,9 @@ export default compose(
withOnyx({
numberOfLines: {
key: ({reportID}) => `${ONYXKEYS.COLLECTION.REPORT_DRAFT_COMMENT_NUMBER_OF_LINES}${reportID}`,
// We might not have number of lines in onyx yet, for which the composer would be rendered as null
// during the first render, which we want to avoid:
initWithStoredValues: false,
},
modal: {
key: ONYXKEYS.MODAL,
Expand All @@ -556,6 +559,7 @@ export default compose(
parentReportActions: {
key: ({report}) => `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${report.parentReportID}`,
canEvict: false,
initWithStoredValues: false,
},
}),
)(
Expand Down

0 comments on commit e322e0c

Please sign in to comment.