MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / updateMatchAndRefresh

Function updateMatchAndRefresh

src/pages/components/ScriptSetting/Match.tsx:33–36  ·  view source on GitHub ↗
(newMatch: MatchItem[])

Source from the content-addressed store, hash-verified

31
32 // 自定义的状态更新函数,会在更新后自动刷新数据
33 const updateMatchAndRefresh = (newMatch: MatchItem[]) => {
34 setMatch(newMatch);
35 refreshMatch();
36 };
37
38 const updateExcludeAndRefresh = (newExclude: MatchItem[]) => {
39 setExclude(newExclude);

Callers 2

renderFunction · 0.85
MatchFunction · 0.85

Calls 1

refreshMatchFunction · 0.85

Tested by

no test coverage detected