Get an instant effect on every click #1080
Replies: 2 comments 6 replies
-
I have been trying to achieve this effect as well. On my slower pages (for example, a dashboard with many stats), I don't pass in any props to the I haven't dug through the Inertia source enough to know whether this would be possible, but it would be neat if when navigating between routes, the next page component immediately renders (with null props at first) and the props are hydrated when the server response is received. Edit: It looks like this idea has been thrown around but not yet implemented #123 (comment) |
Beta Was this translation helpful? Give feedback.
-
I second this. Totally love inertia but find myself wanting instant page browsing like with full SPAs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I just discovered Inertia! My sincere congratulations!
For a long time I have been looking for something that allows me to replace the laborious work it takes with the SPAs (single page apps).
But the real reason I'm still using SPAs is that I want to give my users the feeling of immediacy when they go from page to page, I want to give them that instant feedback even if on a wobbly and slow connection.
Unfortunately this is not the case with standard server-rendered apps or with Inertia: on a slow/medium connection, when clicked, the reaction is not instant, but there is still a wait for the server's response.
I'm not saying that with the SPA there is no waiting for the server (and here you can play with the cache in the browser which works fine if the information has not changed), but the effect is immediate and it "seems" that the application is without server round trip.
I don't know if I have explained what I mean.
The question is: is there any way to make Inertia like this? To give that effect of immediacy, perhaps by postponing the wait for data from the server after the first rendering when the page changes?
Beta Was this translation helpful? Give feedback.
All reactions