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

improvement(import), allow importing main components with wildcard when on a lane #8836

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

davidfirst
Copy link
Member

We used to throw an error suggesting the user to import the components individually. The reason was that when you're on a lane, you probably want to import components from the lane. not main. That's why when the wildcard matches both, lane and main, only the lane are imported.
However, if only components from main are matched, it's not very clear whether you really want to import from lane, or your wildcard syntax didn't bring the results you thought it would.
With this PR we assume that in this case you do want to import from main so we let you do that.

@davidfirst davidfirst enabled auto-merge (squash) April 29, 2024 12:07
@davidfirst davidfirst merged commit 72fb744 into master Apr 29, 2024
11 checks passed
@davidfirst davidfirst deleted the lane-import-wildcard-main branch April 29, 2024 13:01
luvkapur pushed a commit that referenced this pull request May 3, 2024
…en on a lane (#8836)

We used to throw an error suggesting the user to import the components
individually. The reason was that when you're on a lane, you probably
want to import components from the lane. not main. That's why when the
wildcard matches both, lane and main, only the lane are imported.
However, if only components from main are matched, it's not very clear
whether you really want to import from lane, or your wildcard syntax
didn't bring the results you thought it would.
With this PR we assume that in this case you do want to import from main
so we let you do that.
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.

None yet

2 participants