Skip to content

[ReportActionsView] Isolate view/render logic from the "unread business logic" #8829

Closed

Description

@marcaaron

Problem

ReportActionsView has grown in size and has many responsibilities which can make it hard to reason about. There is logic that is primarily related to rendering the list of messages in a chat mixed together with several other things e.g.

  • Performance code for timing the rendering of this list
  • Floating message counter logic
  • New marker logic
  • Render methods for FlatList
  • Data fetching
  • etc.

It's a lot.

Solution

Move the stuff related to FlatList and anything that can be separated from the more complicated logic related to setting an "unread" message out of the ReportActionsView and into a ReportActionsList component that will simply render the chat list.

Activity

  1. added
    Weekly
    Improvement
    Internal
    on Apr 29, 2022
  2. self-assigned this
    on Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

EngineeringImprovementInternalWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions