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

mathewparet's avatar

Reload only shared data from non page component

I need to reload shared data from a component.

The shared data is just a bulk of user notifications and is available on all pages.

I have a Vue component that displays the notifications using $page.props.

Some of the pages where this notification component is displayed has a huge amount of data. When user clicks on the notifications dropdown and clicks on mark all as read then the Link component within it takes it to the controller which marks all notifications as read and then returns using return redirect()->back(303). But this causes the full page to reload and it becomes slow on pages with huge data. Is there a way I can reload the page (like Inertia.reload) but force it to load only the shared data I want.

0 likes
4 replies
mathewparet's avatar

I've already tried that, but it seems like it works only for not page component's properties and not for shared properties

mathewparet's avatar

Got it to work once I started using lazy loading for shared data

3 likes

Please or to participate in this conversation.