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

Pass the request to the child component. #69

Closed
fabiocaccamo opened this issue Oct 8, 2024 · 1 comment
Closed

Pass the request to the child component. #69

fabiocaccamo opened this issue Oct 8, 2024 · 1 comment

Comments

@fabiocaccamo
Copy link

Hi @mixxorz
thank you for this great library!

Component template tags do not pass the current context to the child component.

I totally agree with this, but passing just the request object would be very useful for the following reasons:

  • it's the default Django behaviour, request is available to all templates

  • it would make easier to render components based on user state

  • it would reduce code in the parent template (no need to forward request)

Let me know what you think about this.

@fabiocaccamo
Copy link
Author

Close as duplicate of #45

@fabiocaccamo fabiocaccamo closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2024
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