Skip to content

Suggested Improvement: Flexible Rendering Architecture #172

@harutyunian

Description

@harutyunian

Currently, the package relies on renderContent, renderAvatar, and other places where JSX is directly returned. This creates some limitations:

  1. When fetching data from the backend, we need to iterate through the list and manually refactor each usage.
  2. Extending or customizing rendering logic requires modifying multiple parts of the code.

Proposal

Introduce a more flexible rendering mechanism where the app can pass a function that receives a data[i] item as an argument and returns the appropriate component.

Benefits:

  • Cleaner and more scalable architecture
  • Simplified integration with backend data
  • Better performance by avoiding unnecessary re-renders
  • Easier to maintain and extend for custom use cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions