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
serialize: ignore
must ignore serialize event fork({values})
is used
#862
Conversation
function on<State>( | ||
store: Store<State>, | ||
methodName: string, | ||
nodeSet: CommonUnit | CommonUnit[], | ||
fn: Function, | ||
) { |
There was a problem hiding this comment.
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
updateStore(trigger, store, 'on', callARegStack, fn), | ||
), | ||
createSubscription(updateStore(trigger, store, 'on', callARegStack, fn)), |
There was a problem hiding this comment.
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 => |
There was a problem hiding this comment.
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
Fixes #861