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

bug: Slots with the name prefix call cause rendering to fail #1821

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

Conversation

wenley
Copy link

@wenley wenley commented Aug 15, 2023

What are you trying to accomplish?

This is a bug report. When a component defines a render_one with a slot name starting with call, the app will crash when attempting to render.

This started as of v3.5.0 and does not occur with v3.4.0.

This is the specific line where the app crashes, but the root cause appears to be the slot name being caught by the logic to find "inline calls".

What approach did you choose and why?

This is a minimal reproduction of the error within the existing codebase. Per the bug report Issue template guidance, I am opening a PR with a failing test to demonstrate the issue.

I also have a full repo version of a minimal reproduction of the bug: https://github.com/wenley/ViewComponent-3.5.0-bug

Anything you want to highlight for special attention from reviewers?

I'll admit that the problematic case is a bit niche, but even changing the prefix matching to look for call_ might be an improvement.

@reeganviljoen
Copy link
Collaborator

@wenley I really appreciate you creating some failing tests and a demo repo it really helps issues , what would further help would be to open an issue with the details aswell as linking to this pull request

@wenley
Copy link
Author

wenley commented Aug 21, 2023

@reeganviljoen I opened #1825 to help with tracking. I've cross-linked to this PR, as well as to the demo repo.

Anything else I can do to help?

@reeganviljoen
Copy link
Collaborator

@wenley i really appreciate your help, it makes this process a lot easier, I will take a look and either fix it myself or get some assistance

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