Versions:
@inertiajs/core version: 2.0.11
@inertiajs/svelte version: 2.0.11
Describe the problem:
When using persisting layouts the deferred properties are refetched, even when they are only used in the layout itself and they are not referenced in the page component.
Steps to reproduce:
- Create a deferred shared property in laravel's middleware
- Reference it in the app layout (svelte in this case), do not reference in any page
- Navigate between pages
- The property is refetched (a new http request is made for each navigation)
Expected behavior:
The deferred properties that are only referenced in persistent layouts should not be refetched.