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

Add optional storage parameter for HydratedBloc and HydratedCubit #3886

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bambinoua
Copy link

Status

READY

Breaking Changes

NO

Description

Sometimes it is necessary to change the predefined HydratedBloc.storage especially for web development when either local storage or session storage can be used as hydrated Storage. Now constructors of HydratedBloc and HydratedCubit along with hydrate method of HydratedMixin accept optional parameter storage which overrides the predefined value.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@bambinoua bambinoua requested a review from felangel as a code owner June 23, 2023 06:37
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

Successfully merging this pull request may close these issues.

1 participant