79240363

Date: 2024-11-30 19:43:45
Score: 1
Natty:
Report link

see this link: https://livewire.laravel.com/docs/navigate#dont-rely-on-domcontentloaded

you should use livewire:navigated instead of DOMContentLoaded

the DOMContentLoaded only triggered once after page hard refresh. but when you navigate between pages using wire:navigate, the DOMContentLoaded is not triggering anymore, instead you can use livewire:navigated event. it's triggered in both page hard refresh (like DOMContentLoaded) and after navigating between pages

Reasons:
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (1): see this link
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: llBestBoyll