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: using ref to solve closure problems #497

Open
wants to merge 1 commit into
base: 4.x-stable
Choose a base branch
from

Conversation

jin-sir
Copy link
Collaborator

@jin-sir jin-sir commented Sep 29, 2024

变更类型

请选择以下选项以描述 PR 的类型:

  • Bug 修复(修复现有问题)
  • 新功能(添加了一个功能)
  • 代码优化(性能改进、代码重构)
  • 文档更新
  • 单测新增或修改
  • 其他(请说明):

相关问题

#495

变更内容

handler每次都赋值给handlerRef,在compareValue调用handlerRef,使得在每次调用compareValue时,调用的handler是最新的。

详细描述

对应 Previewer

@jin-sir jin-sir requested review from mortalYoung, liuxy0551, LuckyFBB and JackWang032 and removed request for JackWang032 September 29, 2024 04:41
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.

1 participant