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

Fix typescript error #2913

Merged
merged 1 commit into from
Oct 23, 2019
Merged

Conversation

yeion7
Copy link
Contributor

@yeion7 yeion7 commented Oct 23, 2019

What kind of change does this PR introduce?

Closes #2822
Closes #2836
Closes #2911

What is the current behavior?

What is the new behavior?

What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.

  1. Create a React TS sandbox
  2. Fork sandbox
  3. Save file or add new dependency

Checklist

  • Documentation
  • Testing
  • Ready to be merged
  • Added myself to contributors table

@yeion7
Copy link
Contributor Author

yeion7 commented Oct 23, 2019

@christianalfoni 🙏🏻

@yeion7 yeion7 changed the title Fix Fix typescript error Oct 23, 2019
@lbogdan
Copy link
Contributor

lbogdan commented Oct 23, 2019

Build for latest commit e21dc1d is at https://pr2913.build.csb.dev/s/new.

@TrevorSayre
Copy link

TrevorSayre commented Oct 23, 2019

@lbogdan considering the context of the PR, perhaps this link instead: https://pr2913.build.csb.dev/s/react-ts

This resolves #2822 for me.

@CompuIves
Copy link
Member

Wow this is interesting, we decided to only do modulePaths as an optimization (so we don't have to send new files for every code change, as the workers only care about saved code), but it seems like we did something wrong there. Really good find @yeion7! Now I'm curious what caused this bug in the first place, I wonder what we're actually sending to the workers after adding a dependency...

@CompuIves
Copy link
Member

CompuIves commented Oct 23, 2019

Hmm, after the fork modulesByPath is very different...
image

Oh yep, it seems like it is modulePaths at that point...

@CompuIves
Copy link
Member

This could also be the cause of the sudden empty editor state (@christianalfoni). Let's merge this in now for a quick fix, and take a closer look whether we can optimize this. We prefer not to send all files on a single keypress, so this is not really sustainable.

@CompuIves
Copy link
Member

This is an incredible find @yeion7, this is super impressive! Thanks for digging in!

@CompuIves CompuIves merged commit a46faca into codesandbox:master Oct 23, 2019
@yeion7
Copy link
Contributor Author

yeion7 commented Oct 23, 2019

Thanks!

@CompuIves there are some documentation about how this (workers communication) works at CodeSandbox?

@TrevorSayre
Copy link

Just to confirm, is this not yet live? What is the best way to track when a PR is released into the wild?

@lbogdan
Copy link
Contributor

lbogdan commented Oct 24, 2019

Just to confirm, is this not yet live?

@TrevorSayre We just deployed it.

What is the best way to track when a PR is released into the wild?

We're currently working on making production always reflect master.

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