Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome/FF developer tools element navigation is slow #11

Open
ralphsmith80 opened this issue Oct 11, 2017 · 0 comments
Open

Chrome/FF developer tools element navigation is slow #11

ralphsmith80 opened this issue Oct 11, 2017 · 0 comments

Comments

@ralphsmith80
Copy link

I've never seen this before so I'm not sure where the core issue is, but it seem to fit with this example as I created a preact app using preact-cli and react-toolbox so maybe you have some insight.

You can see the issue for yourself by navigation to my app. You don't have to login, just open developer tools, select the Element panel, and start expanding elements. You should notice a long lag with the responsiveness of the element panel.

I don't see this problem with the react-toolbox components page or the preact-compact-example page.

To attempt to isolate the issue I created a new app from preact-cli and only added the Snackbar example.

What I noticed was that importing components as shown seemed to be the problem.
In other words changing this:

import { Button, Snackbar } from 'react-toolbox'

to this

import { Button } from 'react-toolbox/lib/button'
import { Snackbar } from 'react-toolbox/lib/snackbar'

seemed to fix the problem.

However after following that pattern for every react-toolbox component I'm still seeing the issue. I did introduce changes at top level routes which obviously worked, but seemed to have diminishing returns and once I added the main app route back in it's back to being painfully slow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant