uprm-inso4116-2024-2025-s1 / semester-project-SafeRUM

semester-project-safeRUM created by GitHub Classroom
9 stars 2 forks source link

Prop Flow Diagram in React Native Components #251

Closed noel-vargas closed 1 month ago

noel-vargas commented 1 month ago

Objective:
Ensure the proper flow and management of props between components in the React Native application. The task focuses on optimizing how props are passed and utilized, ensuring data moves efficiently without causing unnecessary re-renders or complex prop drilling.

Task Description:
This task involves reviewing and documenting the current flow of props through the application's components. The goal is to understand how data is passed between parent and child components, identify any inefficiencies (such as excessive prop drilling or redundant re-renders), and propose improvements. This might involve restructuring some components or introducing more effective state management techniques.

Implementation:

  1. Review the Components: Identify all the key components involved in prop passing. Determine how props are currently being passed from parent to child components.
  2. Trace the Prop Flow: Map out the flow of props in the application, noting where props are passed and what data they contain.
  3. Identify Inefficiencies: Look for areas where prop drilling (passing props down multiple layers) occurs or where re-renders might be happening unnecessarily.
  4. Optimize Prop Flow: Implement solutions such as restructuring components, introducing context, or using state management libraries (if applicable) to reduce prop drilling and improve performance.

Subtasks:

  1. Create a visual diagram of the current prop flow between components.
  2. Analyze the diagram to identify any inefficiencies.
  3. Refactor components to reduce prop drilling.
  4. Implement solutions like React.Context or state management where necessary.
  5. Test the refactored components for improved performance and reduced re-renders.

Testing and Debugging:

Deadline:
October 8th, 2024

noel-vargas commented 1 month ago

image