publish: add loading spinner for notebooks
Fixes
@@ -55,15 +55,18 @@ export function NotebookRoutes(
<Route
path={baseUrl}
exact
- render={(routeProps) => (
- <Notebook
+ render={(routeProps) => {
+ if (!graph) {
+ return <Center height="100%"><LoadingSpinner /></Center>;
+ }
+ return <Notebook
{...props}
graph={graph}
contacts={notebookContacts}
association={props.association}
rootUrl={rootUrl}
- baseUrl={baseUrl} />
- )}
+ baseUrl={baseUrl} />;
+ }}
/>
<Route
path={relativePath("/new")}
