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

enhancement: transparent data compression hook #478

Open
j2L4e opened this issue Dec 3, 2018 · 2 comments
Open

enhancement: transparent data compression hook #478

j2L4e opened this issue Dec 3, 2018 · 2 comments

Comments

@j2L4e
Copy link
Contributor

j2L4e commented Dec 3, 2018

In-browser storage size is limited, so for offline-first PWAs you may end up needing some kind of data compression.
A hook that handles compression transparently could be useful here.

Possible config options:

  • idField
  • compression / decompression callback
  • compression level
  • field blacklist / whitelist (you may want to exclude some data from compression for querying / sorting )
@j2L4e
Copy link
Contributor Author

j2L4e commented Dec 3, 2018

@eddyystop
Copy link
Collaborator

I'm open to a PR that de/compresses. Please inject the compression dependency.

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

No branches or pull requests

2 participants