MCPcopy Index your code
hub / github.com/github/awesome-copilot / loadState

Function loadState

extensions/java-modernization-studio/renderer.mjs:935–943  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

933 }
934
935 async function loadState() {
936 try {
937 const r = await fetch("/state" + tokenQuery);
938 state = await r.json();
939 render();
940 } catch (e) {
941 toast("Failed to load state");
942 }
943 }
944
945 async function doAction(kind, payload) {
946 if (kind === "refresh") { toast("Refreshing…"); await loadState(); return; }

Callers 2

doActionFunction · 0.70
clientMainFunction · 0.70

Calls 2

renderFunction · 0.85
toastFunction · 0.85

Tested by

no test coverage detected