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

feat: Throw error when trying to define a derived value during resolution. #810

Open
iwoplaza opened this issue Jan 28, 2025 · 0 comments
Open

Comments

@iwoplaza
Copy link
Collaborator

Motivation

Allowing this pattern would introduce a lot of unnecessary complexity to how we handle slot bindings. It could theoretically be possible, but lets restrict it for now for our own sanity. If there's a valid use-case for this, and a sane behavior, we can re-enable it.

Possible implementation

We can check if getResolutionCtx() returns a defined value, and throw a descriptive error if it does.

@iwoplaza iwoplaza modified the milestone: 0.3.3 Jan 28, 2025
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

No branches or pull requests

1 participant