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
Add once prop to Deferred component that means only once to show the fallback/loading, because every time I call the router.post with the only option like only: ['data'] then the loading from fallback is always popping in; it's like annoying, example you use Spinner for loading.
The scenario for my issue is about broadcasting like ProductCreated event then in frontend using the useEcho hook, the callback function I call the router.reload({ only: ['data'] });.
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.
-
Add once prop to Deferred component that means only once to show the fallback/loading, because every time I call the router.post with the only option like only: ['data'] then the loading from fallback is always popping in; it's like annoying, example you use Spinner for loading.
The scenario for my issue is about broadcasting like ProductCreated event then in frontend using the useEcho hook, the callback function I call the router.reload({ only: ['data'] });.
From backend:
'data' => Inertia::defer(...)
From frontend
Beta Was this translation helpful? Give feedback.
All reactions