MCPcopy Index your code
hub / github.com/learnapollo/learnapollo / constructor

Method constructor

src/components/App/App.tsx:60–79  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

58 }
59
60 constructor(props: Props) {
61 super(props)
62
63 if (props.location.query.code) {
64 this.fetchEndpoint(props.location.query.code)
65 }
66
67 this.state = {
68 showLayover: false,
69 storedState: getStoredState(),
70 expandNavButtons: false,
71 showNav: false,
72 }
73
74 if (getStoredState().initialLoadTimestamp === null) {
75 update(['initialLoadTimestamp'], Date.now())
76 }
77
78 this.onScroll = throttle(this.onScroll.bind(this), 100)
79 }
80
81 componentDidMount() {
82 window.addEventListener('scroll', this.onScroll, false)

Callers

nothing calls this directly

Calls 3

fetchEndpointMethod · 0.95
getStoredStateFunction · 0.90
updateFunction · 0.90

Tested by

no test coverage detected