MCPcopy Create free account
hub / github.com/arethetypeswrong/arethetypeswrong.github.io / render

Function render

packages/web/src/renderer.ts:53–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 subscribe(render);
52
53 function render() {
54 const state = getState();
55 updateView(messageElement, Message, { isError: state.message?.isError, text: state.message?.text || "" });
56 updateView(problemsElement, ProblemList, {
57 problems: state.checks?.problemSummaries,
58 containsTypes: state.checks?.analysis.containsTypes,
59 });
60 updateView(resolutionsElement, ChecksTable, { checks: state.checks });
61 updateView(checkButton, CheckButton, { disabled: !state.packageInfo.parsed });
62 updateView(detailsElement, Details, { analysis: state.checks?.analysis });
63 }
64 });
65}

Callers

nothing calls this directly

Calls 2

getStateFunction · 0.90
updateViewFunction · 0.90

Tested by

no test coverage detected