-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Allow to pass domain as an argument for createEvent
and similar methods
#763
Conversation
createEvent
and similar methods
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.
Awesome 👍
}).toThrowErrorMatchingInlineSnapshot( | ||
`"Domain cannot be created with two domains as parent. Please, remove {domain} argument."`, | ||
) | ||
// @ts-expect-error There is no types for case, just runtime check |
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.
Probably the other way around 🤔
there is no runtime check for the case, only typecheck
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.
LGTM
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.
Cool, thanks 👍👍 This will go to next minor release as this is not a breaking change and there is a need to publish some features earlier
Since effector v22.4.0 we can pass a domain as an argument to units factories. This allows us to get rid of the createFormUnits factory and make units creation easier. See more details effector/effector#763
Closes #590
Conventions