Docz: [v1.0.0-rc.8] Browser freezes when pressing sub-menu (hash鈥揳nchor)

Created on 5 Apr 2019  路  4Comments  路  Source: doczjs/docz

Bug Report

When I select a heading 2 anchor in the menu, the browser tab freezes (Chrome), and I have to close it. I.e. the "Hey there" and "Tell me more" in the image below.

image

It's easily reproducible. Initialize a clean project, something like this:

mkdir docz-test
cd docz-test
npm init -y
npm i -D docz@next docz-theme-default@next
touch hello.mdx

Fill hello.mdx with this:

name: Hello
menu: Intro
---

# Welcome

How are you doing?

## Hey there

We can talk.

## Tell me more

Contact us for more talking.

Run node_modules/.bin/docz dev, go to localhost:3000 and click one of the two links in the menu. Freeze! 馃崸

I am using these versions:

"docz": "^1.0.0-rc.8",
"docz-theme-default": "^1.0.0-rc.8"

Environment

  • MacOS Mojave 10.14.4
  • Node 10.13.0/npm 6.4.1

Most helpful comment

I'm running into this problem, too. Is there any schedule for next release?

All 4 comments

Thanks to warning me @draperunner, I seeing what's happening 馃

Fixed, I don't know why but was something related to React.Suspense. I was using the lazy method of @loadable/component with suspense, it works fine for routes and code splitting, but was crashing when some location has a hash, so awkward, I just change to the loadable method without suspense and now it's working.

Btw, will be released in the next version.

I'm running into this problem, too. Is there any schedule for next release?

v1.0 was just released and resolved this issue for me :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wldcordeiro picture wldcordeiro  路  3Comments

danburzo picture danburzo  路  3Comments

mariusespejo picture mariusespejo  路  3Comments

bichotll picture bichotll  路  3Comments

koddr picture koddr  路  3Comments