You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imagine a "Home" page that displays a long list of items, which are loaded using Inertia::lazy().
The "Home" page might also have a sidebar with a component that sends a simple POST, for example "Subscribe to our newsletter". After the action is performed, the NewsletterController might simply redirect back using return redirect()->back().
Inertia will then NULL (or whatever the default is) all page props that utilize Inertia::lazy(). However, this feels rather buggy, as we the are still on the same Page Component and nothing should temper with these lazyloaded props, until we trigger a new manual reload.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Imagine a "Home" page that displays a long list of items, which are loaded using
Inertia::lazy()
.The "Home" page might also have a sidebar with a component that sends a simple POST, for example "Subscribe to our newsletter". After the action is performed, the NewsletterController might simply redirect back using
return redirect()->back()
.Inertia will then
NULL
(or whatever the default is) all page props that utilizeInertia::lazy()
. However, this feels rather buggy, as we the are still on the same Page Component and nothing should temper with these lazyloaded props, until we trigger a new manual reload.Previous discussion: #863
Beta Was this translation helpful? Give feedback.
All reactions