I am working on an Angular application where I have implemented a user registration feature using a modal dialog. The user registration process appears to work correctly, and the server returns a "Server Error 200" response after successful user addition. However, the page is not loading the updated data automatically after the user is added.
Expected Behavior: I expect the page to automatically load the updated user data from the server and display it in the table immediately after the user is added through the modal dialog.
Current Behavior: After adding a new user through the modal dialog, the server returns a "Server Error 200" response, but the page does not automatically load the updated data. I have to manually refresh the page to see the newly added user.
I have tried manually refreshing the page after adding a user, and the user data is updated correctly in the table. However, I want the page to automatically load the updated data without requiring a manual refresh.
Can someone please help me identify the issue and suggest how to achieve the automatic page update after adding a user?
Thank you in advance for your help!