Skip to content

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

Merged
sergeysova merged 4 commits into
masterfrom
fix/861-serialize-ignore-not-ignores-after-fork-values
Feb 28, 2023
Merged

sergeysova merged 4 commits into
masterfrom
fix/861-serialize-ignore-not-ignores-after-fork-values

Conversation

@sergeysova

Copy link
Copy Markdown
Member

Fixes #861

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

Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread src/effector/fork/createScope.ts Resolved
}),
reset(...units: CommonUnit[]) {
forEach(units, unit => on(store, '.reset', unit, () => store.defaultState))
forEach(units, unit =>

Copy link
Copy Markdown
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

3 participants