Zoom Layers APi Multiple pages Issue

iam building a zoom app in react iam using Layers api to show some content on Zoom Video.
i did implement layers api iam able to draw content on that one question i want to ask i have multiple pages first page is login and second is dashboard.

what i notice is that i can only able to draw content on the very first page otherwise if i include login page and then initialized zoom config, capabilities and all those layers api related function in second page which is dashboard then it is not working.

and if i remove login page and start the app with dashboard page its working.
kindly correct me if iam wrong, or should i miss something, let me know if you can’t get.
@Robert.Wallis