MCPcopy
hub / github.com/AmintaCCCP/GithubStarsManager / initBackend

Function initBackend

src/App.tsx:130–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128 let cancelled = false;
129
130 const initBackend = async () => {
131 try {
132 await backend.init();
133 if (backend.isAvailable && !cancelled) {
134 await syncFromBackend();
135 if (!cancelled) {
136 unsubscribe = startAutoSync();
137 }
138 }
139 } catch (err) {
140 console.error('Failed to initialize backend:', err);
141 }
142 };
143
144 initBackend();
145

Callers 1

AppFunction · 0.85

Calls 4

syncFromBackendFunction · 0.90
startAutoSyncFunction · 0.90
initMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected