Hacker News new | past | comments | ask | show | jobs | submit login

...CodeSandbox has no offline support whatsoever.

It sounds like your motivation is to promote an unrelated product in this HN thread, and that's super lame :(




Sorry I didn't mean to. I was curious and asked some questions because both projects looks very very close to each other.

I just tested the offline support of CodeSandbox and I did manage to work with the editor (the same functionality you've mentioned in the blog post) when the network is offline. You can't test it here: https://codesandbox.io/s/new

Again, what you did is absolutely perfect and I don't want or mean to underestimate your work! :)


You're telling me that CSB hosts a live dev server inside of a service worker that works across browser tabs? That's patently false. This is ours in action, for reference (was even included in the blog post) -> https://twitter.com/ericsimons40/status/893238309085822977

If you're genuinely just confused about how this stuff works, please _ask questions_ instead of making random assertions. Otherwise people get the impression you're shilling a separate product.


I think they simply didn't understand the distinction that one runs js bins (npm install, webpack build) on a server, and the other in the browser.

They also might not understand why it matters.


CodeSandbox does almost everything in the browser however. The only thing it doesn't do in the browser is dependency bundling, which StackBlitz does in this case.

Essentially CodeSandbox can work offline if you already had the website open while you're online, then you can still continue offline. StackBlitz has the advantage that the tab where your application is can also be opened initially offline, which is handy for showing your application when you have no connection, but if I'm not wrong you cannot continue developing offline. I'd love to hear that I'm wrong, I'm really impressed with StackBlitz.

I'm the author of CodeSandbox btw :).


> but if I'm not wrong you cannot continue developing offline

Completely false, see -> https://twitter.com/ericsimons40/status/893238309085822977

You even responded to that thread yesterday, not sure how you didn't see this...


I did see that tweet. Maybe I was a bit unclear. I mean that the whole editor itself doesn't open when you don't have a connection (at least for me). My reproduction steps are:

1. Open https://stackblitz.com/fork/react

2. Disconnect from internet

3. Refresh the tab

At least for me this gives me a 404. I'm on Chrome. However, when I open the preview tab while offline it doesn't 404 on me.


Care to explain further?


There's already Atom In Space but it's not complete I don't think. Not sure how hard/reliable it would be to run.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: