Skip to content

Conversation

@sergeysova
Copy link
Member

Fixes #861

Comment on lines +196 to +201
function on<State>(
store: Store<State>,
methodName: string,
nodeSet: CommonUnit | CommonUnit[],
fn: Function,
) {
Copy link
Member 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
Member 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

}),
reset(...units: CommonUnit[]) {
forEach(units, unit => on(store, '.reset', unit, () => store.defaultState))
forEach(units, unit =>
Copy link
Member 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

4 participants