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

Add check for matching x-inertia-partial-component #18

Merged
merged 1 commit into from
Feb 19, 2020
Merged

Add check for matching x-inertia-partial-component #18

merged 1 commit into from
Feb 19, 2020

Conversation

bigx333
Copy link
Contributor

@bigx333 bigx333 commented Feb 19, 2020

Add a check for x-inertia-partial-component as per https://inertiajs.com/the-protocol#asset-versioning

The X-Inertia-Partial-Component header includes the name of the component that is being partially reloaded. This is necessary, since partial reloads only work for requests made to the same page component. If the final destination is different for whatever reason (eg. the user was logged out and is now on the login page), then no partial reloading will occur.

@tmartin8080
Copy link
Collaborator

Thanks @bigx333 👍

@tmartin8080 tmartin8080 merged commit ae7f1b0 into devato:develop Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants