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

fix: Remove the need of explicit import for SplitByType macros #135

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

HollandDM
Copy link
Contributor

Sorry for taking so long to fix this, I was busy these days.
Macro inlining functions (which has body of ${ ... } ) are required to be in the same scope (maybe same file is good enough, but I always put them in the same object). So I just create some deglate* functions and call them inline.

@HollandDM HollandDM requested a review from raquo as a code owner December 4, 2024 15:17
@@ -4,7 +4,6 @@ import com.raquo.airstream.UnitSpec
import com.raquo.airstream.eventbus.EventBus
import com.raquo.airstream.fixtures.{Effect, TestableOwner}
import com.raquo.airstream.state.Var
import com.raquo.airstream.split.SplitMatchOneMacros.*
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No more importing

@@ -6,7 +6,6 @@ import com.raquo.airstream.eventbus.EventBus
import com.raquo.airstream.fixtures.{Effect, TestableOwner}
import com.raquo.airstream.ownership.{DynamicOwner, DynamicSubscription, ManualOwner, Subscription}
import com.raquo.airstream.split.DuplicateKeysConfig
import com.raquo.airstream.split.SplitMatchSeqMacros.*
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No more importing

@raquo raquo merged commit 1c339e5 into raquo:macro-imports Dec 9, 2024
1 check passed
@raquo
Copy link
Owner

raquo commented Dec 9, 2024

Awesome, thank you very much for all your work on this! I will release 17.2.0 with this feature soon.

raquo pushed a commit that referenced this pull request Dec 12, 2024
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.

2 participants