MCPcopy Create free account
hub / github.com/GCWing/BitFun / cancelAutomaticRefresh

Function cancelAutomaticRefresh

src/web-ui/src/tools/git/hooks/useGitState.ts:145–153  ·  view source on GitHub ↗
(reason: 'mount' | 'visibility')

Source from the content-addressed store, hash-verified

143 ...cancelPendingRefreshSources,
144 ].filter(Boolean)));
145 const cancelAutomaticRefresh = (reason: 'mount' | 'visibility') => {
146 for (const source of sourcesToCancel) {
147 gitStateManager.cancelPendingRefresh(normalizedPath, {
148 layers: layersToRefresh,
149 reason,
150 source,
151 });
152 }
153 };
154
155 cancelAutomaticRefresh('mount');
156 cancelAutomaticRefresh('visibility');

Callers 1

useGitStateFunction · 0.85

Calls 1

cancelPendingRefreshMethod · 0.80

Tested by

no test coverage detected