Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

NielsNumbers's avatar

Page reload not working?

I have a Vue page component that receives as a user and displays all his items

<template>
<div>
<h2>{{user.name}}</h2>
<ul>
<Item @reload="  Inertia.reload({ only: ['user'] })" v-for="item in user.items" :item="item"><Item>
</ul>
</div>
</template>

In the controller I do load the items like this:

$user->load('items.identifier');

return Inertia::render('UserItems', compact('user'));

The items can be edited. When editing one item, it may have effects on the other items. So whenever an item is saved, a reload event is triggered, which then calls Interia.reload() on the page component as explained in https://inertiajs.com/partial-reloads

However, the reload is not working. Console is showing no error. Any idea what could be wrong here?

0 likes
7 replies
Sinnbeck's avatar

However, the reload is not working.

Can you give some more context? That can mean a whole lot of things.

NielsNumbers's avatar

@Sinnbeck what I mean is that I change the properties of the items and they are not displayed on the page nor shown in the vue inspect window. However, when I manually refresh the page with F5 they are shown.

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

@Elenktik Check the network tab in the browser, and see if any requests are made.

1 like
NielsNumbers's avatar

@Sinnbeck Okay found it now. I checked the network tab, and request was made. Also VUE fields were updated correctly. Issue was in my component,...

Thanks for the hint to check the network tab.

MohamedTammam's avatar

You're using only for users but in your controller you're using user. They should match.

And I don't see any reason for using partial reloads when you only have one property.

1 like
NielsNumbers's avatar

@Sinnbeck Yes your right, was a typo in the question. Basically I need a full reload, but I did only found those docs for partial reload. Also tried Inertia.reload() but this was not working either.

Please or to participate in this conversation.