-
Notifications
You must be signed in to change notification settings - Fork 33
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: autorouter is inhertited by the subcircuit child #610
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
this.parent._shouldRouteAsync() | ||
) { | ||
return false | ||
} |
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.
not the right behavior, this is the correct behavior:
- The props define what the subcircuit should do FIRST
- If the props don't specify what you should do, THEN you look at your subcircuit, not your parent
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.
you can't do trace-by-trace autorouting until your children have finished autorouting, but that's outside the scope of this function and may already be implemented
if (props.autorouter) return false | ||
// Inherit from parent if not set by props | ||
const autorouter = | ||
this._parsedProps.autorouter ?? this.getInheritedProperty("autorouter") |
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.
ahhh very nice
issue - tscircuit/tscircuit.com#649