-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
feat(hydrated_bloc): support wasm #4230
Comments
May be it is much easier to use |
@felangel would you move HydratedStorage class to new package to make this one independent of hive? |
What would be the benefit of a separate package? You can already swap out the storage. |
File |
@felangel One benefit would be that if people don't use |
We'd still need to ship a default |
But Thank you! |
Description
The default
HydratedStorage
currently does not support WebAssembly compilation.Reproduction steps:
Create an empty Flutter application
Add
hydrated_bloc: ^9.1.5
topubspec.yaml
Replace
main.dart
with:flutter run -d chrome --wasm --debug
Desired Solution
Support WebAssembly compilation with the default
HydratedStorage
.Alternatives Considered
HydratedStorage
Additional Context
Relevant GitHub conversation about wasm support in the Hive repo: isar/hive#1291
The text was updated successfully, but these errors were encountered: