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

serialize: ignore must ignore serialize event fork({values}) is used #862

Merged

Conversation

sergeysova
Copy link
Collaborator

Fixes #861

Comment on lines +196 to +201
function on<State>(
store: Store<State>,
methodName: string,
nodeSet: CommonUnit | CommonUnit[],
fn: Function,
) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added <State> generic parameter and reformatted with prettier

Comment on lines -209 to +213
updateStore(trigger, store, 'on', callARegStack, fn),
),
createSubscription(updateStore(trigger, store, 'on', callARegStack, fn)),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just reformatted with prettier

@@ -251,7 +254,9 @@ export function createStore<State>(
scope: forkPage!,
}),
reset(...units: CommonUnit[]) {
forEach(units, unit => on(store, '.reset', unit, () => store.defaultState))
forEach(units, unit =>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No actual changed, just reformatted

@sergeysova sergeysova merged commit 0bffcf4 into master Feb 28, 2023
@sergeysova sergeysova deleted the fix/861-serialize-ignore-not-ignores-after-fork-values branch February 28, 2023 11:35
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.

serialize: ignore in createStore serializes after fork with values
3 participants