Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring use-echarts hook #57

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

brandanking-decently
Copy link
Contributor

📝 Description

This pull request includes improvements to the EChart component and introduces several utility functions to enhance the functionality and maintainability of the ECharts integration in the codebase.

⛳️ Current behavior (updates)

The current use-echarts.tsx file includes a lot of code and is hard to understand and maintain. Also functions unrelated to state are unitized within the hook. Which has performance implications.

🚀 New behavior

The changes include the addition of detailed documentation, restructuring of the component's initialization and event handling, and the introduction of utility functions for ECharts setup and configuration.

💣 Is this a breaking change (Yes/No)

No

📝 Additional Information

This was tested using the project in the example folder. During my testing I was unable to find any regressions that this refactoring me cause

@brandanking-decently
Copy link
Contributor Author

@hugocxl any chance at getting this reviewed? It will also solves #37

@hugocxl hugocxl merged commit 79247b3 into hugocxl:master Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants