inertia-laravel icon indicating copy to clipboard operation
inertia-laravel copied to clipboard

Manual Visit causes HMR to stop reloading

Open XGhozt opened this issue 3 years ago • 3 comments

It seems anytime I do a "manual visit" via Inertia that the subsequent changes expected via hot loading stop coming in. What's interesting is that it works the first time, and doesn't reload anymore after that, until I refresh the page manually. The console is still showing hot reload requests being made, so it's aware that changes happened but the changes never show up on the page.

Additionally, from what I can tell, CSS and parent components / layouts still work. So it's only the component that executed the manual visit which no longer reloads showing changes.

In my case I'm taking advantage of the Lazy partial reloading to get more data after the page initially loads on demand.

Edit: Vue 2

XGhozt avatar Oct 28 '21 04:10 XGhozt

Sounds like this could be related to https://github.com/inertiajs/inertia/issues/811.

Do you also have problems with the url/port the request returns?

NickSdot avatar Nov 17 '21 13:11 NickSdot

Thanks @NickSdot -- I'm not sure if it's related. My pagination and other links work fine. Browsersync is also fine. It's just the mix hot-reload that causes it. It just only hot-reloads the first time, IF manual inertia requests are made before the next hot reload.

XGhozt avatar Dec 11 '21 05:12 XGhozt

@XGhozt can you provide a minimal reproduction?

NickSdot avatar Feb 05 '22 13:02 NickSdot

Hey there,

We're closing this issue because it's inactive, already solved, old or not relevant anymore. Feel free to open up a new issue if you're still experiencing this problem.

jessarcher avatar Sep 08 '23 01:09 jessarcher