Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Slate 查询,我只希望它在我点击一个按钮时运行,而不是之前。我该如何控制?
您可以将查询设置为从查询编辑器手动运行。
按Run带有向下箭头的按钮以获取查询选项,然后选中“手动运行”旁边的框。
Run
注意:如果您将查询设置为手动运行,它将不会在文档加载或其依赖关系发生变化时运行。它只会在被事件触发时运行。
在 Slate 文档中,可以找到 Slate 开发最佳实践指南中的“管理查询执行”部分,以更深入地讨论控制查询的模式。