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

How to use with react-devtools #8

Closed
bbarker opened this issue Mar 5, 2020 · 2 comments · Fixed by #9
Closed

How to use with react-devtools #8

bbarker opened this issue Mar 5, 2020 · 2 comments · Fixed by #9

Comments

@bbarker
Copy link
Contributor

bbarker commented Mar 5, 2020

In relation to purescript-concur/purescript-concur-react#41, I've been wondering if react-devtools might provide some insight. It might be good to build this functionality into this starter project, so that one could do things like build a development or profiling build.

However, I've been unable to do this so far, and I'm guessing it is in relation to parcel, though I'm not sure - most react projects seem to use webpack, and all the devtools instructions I've seen have been for webpack. Whenever I go to the profiling tab of react dev tools on my parcel/concur project, I'm unable to profile. An alternative, if a development build is enabled, is to use the performance tab which is a standard feature of the browser.

I've tried setting NODE_ENV="development" parcel build ..., but this didn't appear to help in my case.

@bbarker
Copy link
Contributor Author

bbarker commented Mar 5, 2020

Confirmed that profiling works when using webpack (example repo, snapshot).

In particular, the react Profiler (tried in Chromium) works, though there is only one component showing up: Concur. Still, it is a start.

@ajnsit
Copy link
Member

ajnsit commented May 15, 2020

Thanks @bbarker!

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

Successfully merging a pull request may close this issue.

2 participants