yueduz
yueduz
 我在enterFilter里调用了这个函数
我使用了mobx,是不是因为在enterFilter调用时执行了一次,渲染好后检测到props变化又自动渲染了一次,但是我是在设置好props才调用的callback()啊,但是我看组件在没有完成props设置就渲染了一次了
 确实是,render了一次,enterFilter了两次
我这里环境较复杂,不太方便. enterFilter在render前后各调用了一次
代码直接给你的话可能无法正常运行,如果不能运行也可以那我可以把代码给你
我想我找到问题了,为什么刷新两次.组件还没有render()的时候调用了一次enterFilter,但是enterFilter改变了组件引用的值.,所以mobx刷新了组件,组件刷新自然又要调用enterFilter.第二次调用enterFilter设置的值和第一次一样,所以没有继续刷新.在还没有callback()之前,mobx就检测到引用变化了.不知道怎么解决
> 大家好,“ ev.preventDefault()”或m.redraw = false是否不是这种情况? > > @yueduz:您到底在做什么?什么是“锚”?你是说一个命名的锚? Is a link containing a "#": https://blog.juying.co/content/Linux%E4%B8%8B%E4%BD%BF%E7%94%A8Mac%E9%94%AE%E7%BB%91%E5%AE%9A%E9%A3%8E%E6%A0%BC#%E5%BA%9F%E8%AF%9D%E8%AF%B4%E5%AE%8C%E4%BA%86%EF%BC%8C%E6%88%91%E4%BB%AC%E5%BC%80%E5%A7%8B
Chamfering should exist as a modifier, not a real modification model. Like Blender's modifier, we can then hide the modifier and show the modifier. Modifiers are applied only when the...
我只是为了测试设的,使用script_translator,这样设了,按m也不会上屏。语法该怎么配置?
@X1aomu 你说的是这个吧:auto_select: true 对script_translator引擎没用。