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

Asynchronous when Piping Read Streams to Writable Streams with createWritable() #315

Open
FaitAccompli opened this issue Aug 5, 2021 · 0 comments

Comments

@FaitAccompli
Copy link

Hi,

I'm trying to migrate from StreamSaver to Native File System API. For smaller datasets, streaming the data in my streaming API and saving it as CSV on client side is no issue with file system access. However, for larger datasets with around ~1M rows there are UI issues where the download gets cancelled every time we change routes or click on a different module in the app.

I hope there's a way or workaround for this issue. StreamSaver (https://github.com/jimmywarting/StreamSaver.js) creates a writable stream directly to the file system, the downside to this however is using a service worker. Would it be possible to do so as well with file system access? Maybe making use of the browsers download progress and making the process of piping read streams to writable streams non-blocking when using createWritable().

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