How to update a view?

I’m writing an UI which can display event booked by the logged in user, and I’m having trouble figuring out how to make a view display the user’s event table. Since I make use of views, all the views are created when the UI is initialized. This is problematic in the case I described because the code will now generate an empty table since no user is logged in when the view is created.

I know I could make the table a global component and let other views erase the table and create a new one when a new user logs in, but I wanted to know if there is a better way update view data.

Could you explain the situation better? Difficult to understand from your description. What does the table show and how it is related to other views?