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

Remove thru method #843

Merged
merged 1 commit into from
Jul 19, 2023
Merged

Remove thru method #843

merged 1 commit into from
Jul 19, 2023

Conversation

zerobias
Copy link
Member

@zerobias zerobias commented Feb 2, 2023

No description provided.

@zerobias zerobias added this to the effector 23.0.0 milestone Feb 2, 2023
@zerobias zerobias mentioned this pull request Feb 2, 2023
75 tasks
Comment on lines -116 to -119
No overload matches this call.
The last overload gave the following error.
Argument of type 'Effect<any, number, Error>' is not assignable to parameter of type 'Event<string>'.
Property 'thru' is missing in type 'Effect<any, number, Error>' but required in type 'Event<string>'.
Copy link
Member Author

Choose a reason for hiding this comment

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

‼️‼️restore is broken because it was dependent on .thru

const ev = createEvent<number>()
restore(ev, 'initial')

@@ -92,7 +92,8 @@ test('useEvent of Effect<void, unknown, Error>', () => {
useEvent(createEffect<void, unknown, Error>())
expect(typecheck).toMatchInlineSnapshot(`
"
no errors
Type '() => void' is not assignable to type '() => Promise<unknown>'.
Type 'void' is not assignable to type 'Promise<unknown>'.
Copy link
Member Author

Choose a reason for hiding this comment

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

‼️‼️useEvent is broken for unknown reason

@zerobias zerobias changed the title [effector 23] Remove thru method Remove thru method Feb 7, 2023
sergeysova added a commit that referenced this pull request Jun 10, 2023
@sergeysova sergeysova changed the base branch from master to release/v23 July 6, 2023 06:37
@zerobias zerobias merged commit 21ec90b into release/v23 Jul 19, 2023
@zerobias zerobias deleted the remove-thru-method branch July 19, 2023 13:20
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.

1 participant