```js
function Editor({ data: { page } }: EditorProps) {
  if (page == null) throw Error('missing page data in editor')
  const [editorValue, setEditorValue] = useState(() => {
}
```

I believe this should be a valid case, because throw. 
const {cache} = countPathsFromStart;
          let paths = cache.get(segment.id);
          
          
          if (paths === null) {
            if (cyclic.has(segment.id)) {
              return 0;
            } else {
              cyclic.add(segment.id);
              for (const prevSegment of segment.prevSegments) {
                countPathsFromStart(prevSegment);
              }
              return 0;
            }
          }
          
          if (paths !== undefined) {
            return paths;
          }
          
          cache.set(segment.id, null);
          if (segment.prevSegments.length === 0) {
            paths = 1;
          } else {