chore(warnings): format warning logs, add troubleshooting page

This commit is contained in:
Christopher Möller
2022-04-26 16:33:54 +02:00
parent 3e91fc18e3
commit 922005e236
8 changed files with 30 additions and 11 deletions
+3 -1
View File
@@ -17,7 +17,9 @@ function useResizeHandler(rendererNode: MutableRefObject<HTMLDivElement | null>)
const size = getDimensions(rendererNode.current);
if (size.height === 0 || size.width === 0) {
console.warn('The React Flow parent container needs a width and a height to render the graph.');
console.warn(
'[React Flow]: The React Flow parent container needs a width and a height to render the graph. Help: https://reactflow.dev/docs/guides/troubleshooting'
);
}
store.setState({ width: size.width || 500, height: size.height || 500 });