2 votes
Accepted

I am new to LWC. I dont want to show alert message every time i refresh account detail page

Everytime the page is refreshed, the component goes through its lifecycle flow, so the wire method runs and if those conditions are met it will show the alert. In order to avoid this, you must set a ...
user avatar
  • 3,883

Only top scored, non community-wiki answers of a minimum length are eligible