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

fix: fix the bug of changing the state during the render process and other small bugs #335

Merged
merged 2 commits into from
Sep 5, 2023

Conversation

eurecalulu
Copy link
Contributor

This pr mainly fixes some bugs:

  1. In our current code, the state is changed in the render function, thus causing the following warning:

61693845199_ pic

In addition, too much data processing should be avoided in the render function, otherwise performance will be affected. Therefore, I extracted the data processing part of the menus and the calling part of the reducer in the render method as a function.

  1. When setting the inline style of an element, change the hyphen naming convention to the camel naming convention.

  2. Comment out some redundant code.

@moremind moremind merged commit 155384d into apache:master Sep 5, 2023
5 checks passed
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