Commit 9a4f669c authored by Jeff Avallone's avatar Jeff Avallone

Adding initial shot at handling build issues

parent a4450b34
Pipeline #43078847 passed with stages
in 4 minutes
......@@ -76,11 +76,13 @@ const createPngLink = async ({ svg, width, height }) => {
};
class App extends React.PureComponent {
state={
...readURLHash()
}
state={}
componentDidMount() {
// Gatsby doesn't have document.location, so readURLHash can't be called
// until here
this.setState(readURLHash());
window.addEventListener('hashchange', this.handleHashChange);
this.handleHashChange();
}
......@@ -144,7 +146,7 @@ class App extends React.PureComponent {
};
return <AppContext.Provider value={ context }>
<Form />
{ syntax && <Form /> }
<Loader />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment