Skip to content

[HOLD for payment 2022-05-25][$1000] Non-unique keys React warning. Possibly related to RenderHTML ? #8655

Closed

Description

@marcaaron

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Build the app on dev in iOS

Expected Result:

  1. No console warnings are seen

Actual Result:

  1. Console is complaining with this:

2022-04-15_11-56-20

Workaround:

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:

View all open jobs on GitHub

Activity

  1. added
    External
    Daily
    on Apr 15, 2022
  2. melvin-bot commented on Apr 15, 2022

    @melvin-bot

    Triggered auto assignment to @JmillsExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  3. JmillsExpensify commented on Apr 18, 2022

    @JmillsExpensify
    Contributor

    Wow, interesting find. Posted the upwork job here for proposals: https://www.upwork.com/jobs/~01e7b5db822c3f7489

  4. added
    Weekly
    and removed
    Daily
    on Apr 18, 2022
  5. melvin-bot commented on Apr 18, 2022

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (Exported)

  6. added
    Help Wanted
    on Apr 18, 2022
  7. melvin-bot commented on Apr 18, 2022

    @melvin-bot

    Triggered auto assignment to @AndrewGable (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

  8. 20 remaining items

  9. eVoloshchak commented on May 12, 2022

    @eVoloshchak
    Contributor

    @parasharrajat, it's been a week and the issue has no response from the maintainer. Should we wait more?

  10. parasharrajat commented on May 12, 2022

    @parasharrajat
    Member

    I thought you created the PR as well. #8655 (comment).

    Also, please change the title to `Non-unique React keys warning when using dangerouslyDisableWhitespaceCollapsing

  11. eVoloshchak commented on May 12, 2022

    @eVoloshchak
    Contributor

    I thought you created the PR as well. #8655 (comment)

    Ok, will do that shortly

  12. parasharrajat commented on May 12, 2022

    @parasharrajat
    Member

    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.

  13. mdneyazahmad commented on May 12, 2022

    @mdneyazahmad
    Contributor

    I earlier posted this issue https://expensify.slack.com/archives/C01GTK53T8Q/p1644402310844119. Am I eligible for reporting bonus?

  14. eVoloshchak commented on May 14, 2022

    @eVoloshchak
    Contributor

    So I've received an answer from repo maintainer

    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's baseStyle 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.

  15. parasharrajat commented on May 15, 2022

    @parasharrajat
    Member

    @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.

  16. eVoloshchak commented on May 15, 2022

    @eVoloshchak
    Contributor

    @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.

    Sure thing

    Web:

    cinnamon-20220515-1.mp4

    Android

    22-05-15-21-25-45.mp4
  17. parasharrajat commented on May 16, 2022

    @parasharrajat
    Member

    Ok, looking good to me. Go ahead and create the PR.

  18. eVoloshchak commented on May 16, 2022

    @eVoloshchak
    Contributor

    Ok, looking good to me. Go ahead and create the PR.

    PR is up

  19. JmillsExpensify commented on May 23, 2022

    @JmillsExpensify
    Contributor

    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!

  20. 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
  21. JmillsExpensify commented on May 25, 2022

    @JmillsExpensify
    Contributor

    Payment issued for @eVoloshchak. @parasharrajat I'll circle back on you tomorrow, as I just sent the offer. Thanks both!

  22. JmillsExpensify commented on May 26, 2022

    @JmillsExpensify
    Contributor

    @parasharrajat is now covered, so I'm closing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ExternalWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions