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: 修复auto、dark模式下在刷新后,code模块未同步的情况 #227

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

BARMPlus
Copy link
Contributor

@BARMPlus BARMPlus commented Mar 7, 2023

Description

#226
auto模式下,依然会出现code模糊的问题,修复此问题。
react-syntax-highlighter style属性直接设置为dark或者light常量,可以正常生效,但是用useMemo或者其他方式包裹后返回的变量,始终无法完成正常的初始化。
解决方案:mode初始值设置为undefined,根据theme重新设置。

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Enhancement (changes that improvement of current feature or performance)
  • Refactoring (changes that neither fixes a bug nor adds a feature)
  • Test Case (changes that add missing tests or correct existing tests)
  • Code style optimization (changes that do not affect the meaning of the code)
  • Docs (changes that only update documentation)
  • Chore (changes that don't modify src or test files)

@Mereithhh Mereithhh merged commit c615d81 into Mereithhh:master Mar 7, 2023
Mereithhh added a commit that referenced this pull request Apr 10, 2023
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