-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
fix: tap and andThen fallthrough function #2264
Conversation
🦋 Changeset detectedLatest commit: 7789d37 The changes in this PR will be included in the next version bump. This PR includes changesets to release 15 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Mmm what about Effects that are functions? Like the proxy ones from the new tag |
What about them? It they match the supported function signature for andThen/tap, then they’re golden. Otherwise they are (I believe) rightfully rejected. |
I think if an arg is both a function and an effect we have to force |
I see, seems like a related topic, how is it affected by this change? |
It's not affected but related, with the intro of effect.tag we can't
basically distinguish functions from effects, it is an issue for tacit
usage
…On Fri, 8 Mar 2024, 18:25 Patrick Roza, ***@***.***> wrote:
I think if an arg is both a function and an effect we have to force () =>
because the impl will take a choice, either there is an isFunction or
isEffect. Quite a conondrum...
I see, seems like a related topic, how is it affected by this change?
—
Reply to this email directly, view it on GitHub
<#2264 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFZAKCVBJRRXCBXUDLQTOKLYXHYADAVCNFSM6AAAAABEM66QGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWGEYDOOJZGA>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
alright, would at least like to get the bug fix merged so that users stop getting bit by it. |
I think there are a few other places where we assume an Effect isn't a function, will need to hunt them down. |
I see now yes, that's certainly 'fun' :D |
|
fixes for example: