pin_on_change() 的实现方式 #314
18870
started this conversation in
Feature request
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
0c0c471#diff-9d7e06e718398527e392dd83d98f8ce94c15c089c70a7ba490a7ada17c161252R360
我注意到这里使用了
pin_wait_change()
,这种方法在同时监听很多pin组件或服务器到用户延迟较大的时候,两次监听的时间间隔会比较长。当用户输入的比较快的时候可能会出现漏字的情况,以前的 markdown 实时预览 demo 可以复现这个问题(我找不到链接了)。如果可能的话,我的预期行为是
pin_on_change()
可以在前端直接绑定pin组件并持续监听,由前端主动向后端发送变化,而不是依赖pin_wait_change()
反复对组件监听一次。#273
Beta Was this translation helpful? Give feedback.
All reactions