Support URL preservation for partial reload requests to API routes #1689
nathanmedz
started this conversation in
Ideas
Replies: 1 comment
-
Maybe this could help: #1009 But it doesn't work, I ask here about it: #1702 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As far as I can tell, if you make a request to a url that is not your current url there is currently no way to prevent Inertia from modifying the browser url when you receive a response, even if your response renders the same component. With partial renders, this would mean that you can use API endpoints to fetch/ modify part of the data on your page without a full data reload. This is especially useful for pages with primary data that is expensive to fetch and secondary data that is frequently edited.
Example - making a request from something like
https://mysite.com/home
,this will partially reload the data as expected, but will also modify the browser url to
https://mysite.com/some_api_route
which is undesirable in many casesBeta Was this translation helpful? Give feedback.
All reactions