79254280

Date: 2024-12-05 10:36:50
Score: 1
Natty:
Report link

You could leverage Inertia's partial reloads in tandem with the navigate event to work around this issue. Something like the following might work:

import { router } from '@inertiajs/vue3'

// Listen for navigation through history
router.on('navigate', () => {
  // Reload only the props required
  router.reload({ only: ['cart'] });
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Charlie Tennant