on-internet
← Community

What is the best way to be handling onmounted calls while making sure the global state management array does not make the form dirty

Stack Overflow ·

This is my onMounted call and the loadTripAdvanceDetail function here is responsible for populating the form for edit operations however it makes my form dirty and gives me the unsaved changes dialog despite of not making any changes. I added globalEvents.emit to solve this problem which conducts a check pre and post rendering but nothing still seems to work. This problem has been persisting across the board for me and I feel lost at this point. Any advice/help would be much appreciated. // Initialize onMounted(async () => { globalEvents.emit(EVENTS.COMPONENT_LOADING, null); try { // 1. Load A

Comments

Sign in or sign up to comment and upvote.

No comments yet.