You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2022-05-25][$1000] Non-unique keys React warning. Possibly related to RenderHTML ? #8655
Yes. This doesn't seem to affect app performance, but may indicate a serious problem.
Platform:
Where is this issue occurring?
Web
iOS
Android
Desktop App
Mobile Web
Version Number: Reproducible in staging?: Pretty sure the warning is silenced there. Reproducible in production?: Pretty sure the warning is silenced there. Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Expensify/Expensify Issue URL: Issue reported by: Slack conversation:
Also, the maintainer is very active on the repo. He must be busy with some stuff but he will take a look. Try joining the discord and mention this issue.
The real issue is that dangerously (which means in this context: not really tested) disabling whitespace collapsing would cause @native-html/transient-render-engine to produce a faulty tree in certain situations, where indexes are not reflecting real position. Hence, this should be fixed in this repository instead of implementing a hack around here: https://github.com/native-html/core/tree/master/packages/transient-render-engine.
As a side note regarding using this not-so-recommended prop, in most of the cases you'll be better off with a global style which sets white-space: pre
I searched and found out that dangerouslyDisableWhitespaceCollapsing was set to true in order to fix #3859.
So, as was suggested, I set dangerouslyDisableWhitespaceCollapsing to false and added a whiteSpace: 'pre' to TRenderEngineProvider'sbaseStyle and it worked. It resolves this issue without breaking #3859. Tested on web and native. So if there is no other issues besides #3859 that require dangerouslyDisableWhitespaceCollapsing to be enabled, we can resolve this.
@eVoloshchak Could you share a video showing the effect of the new change? Please use a combination of messages in any chat and scroll to show those messages in the video. Thanks.
@eVoloshchak Could you share a video showing the effect of the new change? Please use a combination of messages in any chat and scroll to show those messages in the video. Thanks.
Looks like the linked PR made it to production last week. I'm mainly updating the issue title to account for the regression period. Payment later this week!
changed the title [-][$1000] Non-unique keys React warning. Possibly related to RenderHTML ?[/-][+][HOLD for payment 2022-05-25][$1000] Non-unique keys React warning. Possibly related to RenderHTML ?[/+]on May 23, 2022
Activity
melvin-bot commentedon Apr 15, 2022
Triggered auto assignment to @JmillsExpensify (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.JmillsExpensify commentedon Apr 18, 2022
Wow, interesting find. Posted the upwork job here for proposals: https://www.upwork.com/jobs/~01e7b5db822c3f7489
melvin-bot commentedon Apr 18, 2022
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (
Exported)melvin-bot commentedon Apr 18, 2022
Triggered auto assignment to @AndrewGable (
Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.20 remaining items
eVoloshchak commentedon May 12, 2022
@parasharrajat, it's been a week and the issue has no response from the maintainer. Should we wait more?
parasharrajat commentedon May 12, 2022
I thought you created the PR as well. #8655 (comment).
Also, please change the title to `Non-unique React keys warning when using dangerouslyDisableWhitespaceCollapsing
eVoloshchak commentedon May 12, 2022
Ok, will do that shortly
parasharrajat commentedon May 12, 2022
Also, the maintainer is very active on the repo. He must be busy with some stuff but he will take a look. Try joining the discord and mention this issue.
mdneyazahmad commentedon May 12, 2022
I earlier posted this issue https://expensify.slack.com/archives/C01GTK53T8Q/p1644402310844119. Am I eligible for reporting bonus?
eVoloshchak commentedon May 14, 2022
So I've received an answer from repo maintainer
I searched and found out that
dangerouslyDisableWhitespaceCollapsingwas set to true in order to fix #3859.So, as was suggested, I set
dangerouslyDisableWhitespaceCollapsingtofalseand added awhiteSpace: 'pre'toTRenderEngineProvider'sbaseStyle and it worked. It resolves this issue without breaking #3859. Tested on web and native. So if there is no other issues besides #3859 that requiredangerouslyDisableWhitespaceCollapsingto be enabled, we can resolve this.parasharrajat commentedon May 15, 2022
@eVoloshchak Could you share a video showing the effect of the new change? Please use a combination of messages in any chat and scroll to show those messages in the video. Thanks.
eVoloshchak commentedon May 15, 2022
Sure thing
Web:
cinnamon-20220515-1.mp4
Android
22-05-15-21-25-45.mp4
parasharrajat commentedon May 16, 2022
Ok, looking good to me. Go ahead and create the PR.
eVoloshchak commentedon May 16, 2022
PR is up
JmillsExpensify commentedon May 23, 2022
Looks like the linked PR made it to production last week. I'm mainly updating the issue title to account for the regression period. Payment later this week!
[-][$1000] Non-unique keys React warning. Possibly related to RenderHTML ?[/-][+][HOLD for payment 2022-05-25][$1000] Non-unique keys React warning. Possibly related to RenderHTML ?[/+]JmillsExpensify commentedon May 25, 2022
Payment issued for @eVoloshchak. @parasharrajat I'll circle back on you tomorrow, as I just sent the offer. Thanks both!
JmillsExpensify commentedon May 26, 2022
@parasharrajat is now covered, so I'm closing this out.