Skip to content

Scheduling Profiler: Add Fast Refresh #19757

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

Merged

Conversation

taneliang
Copy link
Contributor

Summary

The scheduling profiler currently reloads when code is changed, dumping any loaded data and bringing us back to the import page. This is a pain in dev, especially when iterating on canvas code.

Before:
reload

After:
fast-refresh

cc @bvaughn, @kartikcho

Test Plan

  1. In repo root: yarn build-for-devtools now also builds react-refresh
  2. In scheduling profiler package:
    1. yarn build builds without crashing. Built app verified to work with cd dist && npx serve
    2. yarn start (see screen recording above)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 3, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 4c84e9d:

Sandbox Source
React Configuration

@sizebot
Copy link

sizebot commented Sep 3, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against 4c84e9d

@sizebot
Copy link

sizebot commented Sep 3, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against 4c84e9d

Copy link
Contributor

@kartikcho kartikcho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a really good QoL addition to dev! I was thinking maybe we could do something similar with the production version to have a button that mounts a new profile instead of hitting refresh everytime to load another profile?

@kartikcho
Copy link
Contributor

Ah, I forgot #19707 is implementing what I suggested, my bad.

@bvaughn bvaughn self-assigned this Sep 3, 2020
Copy link
Contributor

@bvaughn bvaughn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent

@bvaughn bvaughn merged commit 9340083 into facebook:master Sep 3, 2020
@taneliang taneliang deleted the scheduling-profiler-fast-refresh branch September 3, 2020 13:19
koto pushed a commit to koto/react that referenced this pull request Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants