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

fix: remove default custom serialization and make it an opt-in option #272

Merged
merged 1 commit into from Oct 26, 2020

Conversation

matmalkowski
Copy link
Collaborator

Removing custom serializer as a default, since its not alligned with redux recommendation about store
& serialization
You can still opt-in for some custom functions via options when creating the enhancers.

Renamed the main functions too.

fix #261

Removing custom serializer as a default, since its not alligned with redux recomendation about store
& serialization

fix #261
@matmalkowski matmalkowski added v2 All issues related to v2 hacktoberfest-accepted labels Oct 23, 2020
@matmalkowski matmalkowski added this to the 2.0 milestone Oct 23, 2020
@matmalkowski matmalkowski self-assigned this Oct 23, 2020
@matmalkowski matmalkowski added this to In progress in v2 via automation Oct 23, 2020
Copy link
Contributor

@victorhqc victorhqc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good!


async function getRendererState(callback: (state: unknown) => void) {
async function fetchInitialState(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice naming

* @param {MainStateSyncEnhancerOptions} options Additional enhancer options
* @returns StoreEnhancer
*/
export const mainStateSyncEnhancer = (options = defaultOptions): StoreEnhancer => (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

v2 automation moved this from In progress to Reviewer approved Oct 26, 2020
@matmalkowski matmalkowski merged commit 5238bce into alpha Oct 26, 2020
v2 automation moved this from Reviewer approved to Done Oct 26, 2020
@matmalkowski matmalkowski deleted the disable-custom-serializers branch October 26, 2020 19:00
@matmalkowski
Copy link
Collaborator Author

🎉 This PR is included in version 2.0.0-alpha.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants