-
Notifications
You must be signed in to change notification settings - Fork 41
Allow AlwaysProp #76
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
base: main
Are you sure you want to change the base?
Allow AlwaysProp #76
Conversation
Thanks @salernosimone this looks good! Would you be able to add a test for the new behavior? |
I'll try |
I’m happy to help if you’d like! |
inertia/http.py
Outdated
@@ -92,14 +92,20 @@ def build_props(self): | |||
**(self.request.inertia), | |||
**self.props, | |||
} | |||
delete_queue = [] |
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.
This should probably be a set()
instead of an ordered list.
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.
uv.lock
shouldn't probably be added here :)
I added 2 test cases. |
Co-authored-by: Aarni Koskela <[email protected]>
The Laravel adapter has a
Inertia::always
method to always include data (on standard visits and on partial reloads without being explicitly requested). This pull request implements it.