adding xhr #639
merijnponzo
started this conversation in
Ideas
adding xhr
#639
Replies: 1 comment 4 replies
-
So this sort of defeats the purpose of Inertia. The goal with Inertia is to provide data to your page components via page props. To access data this way would require manually tracking page data (props) in local component state, which introduces client-side state issues. Further, you should be able to make an Inertia visit directly to |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice if I can use the this.$inertia.get() request to simply return a json object.
Now it's always redirecting to the route i'm requesting.
So for example:
To only get the users object
I am using axios for now but still, this would return all of the data with all of the props
Beta Was this translation helpful? Give feedback.
All reactions