This pull request introduces several improvements to the codebase:
Focuses on reducing re-renders and improving overall responsiveness.
Streamlines the way asset data is managed within the Redux store.
Common libraries and utilities are well-structured based on their functionalities.
Reduced prop drilling
Specific changes
The asset dropdown component has been optimized to minimize unnecessary re-renders. This was achieved by strategically moving component state management.
The utils.ts file has been restructured to group utility functions based on their purpose (e.g., number formatting, unit conversion). This improves code maintainability and reduces import complexity.
Additional notes
This pull request is the first of a two-part series. The next pull request will focus on optimizing performance related to transactions and their interaction with the asset accordion.
Overview
This pull request introduces several improvements to the codebase:
Specific changes
The asset dropdown component has been optimized to minimize unnecessary re-renders. This was achieved by strategically moving component state management.
The
utils.ts
file has been restructured to group utility functions based on their purpose (e.g., number formatting, unit conversion). This improves code maintainability and reduces import complexity.Additional notes
This pull request is the first of a two-part series. The next pull request will focus on optimizing performance related to transactions and their interaction with the asset accordion.