8000 fix: Limit withLoaded destructures to loaded relations. by stephenh · Pull Request #1505 · joist-orm/joist-orm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: Limit withLoaded destructures to loaded relations. #1505

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stephenh
Copy link
Collaborator
@stephenh stephenh commented Jun 5, 2025

Previously withLoaded would accept any keys in the { foo, bar } = withLoaded destructure, but fail at runtime if foo or bar was not loaded.

Now only keys that are known to be loaded are available to destructure.

@stephenh stephenh force-pushed the fix-with-loaded-inference branch from c503451 to 8c83405 Compare June 19, 2025 14:01
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.

1 participant
0