So i have a special use case where I need to fetch data based on a subtype dynamic param, but i need to access this value in other components as well, where params not available, and also this fetch returns a tenantId that i need to use in a lot of component.
My question is that what is my best option here?
Currently i am doing a check for domains, etc and set a a cookie with that subtype, and whenever i need to fetch data with the subtype param I just fetch it from the cookie value, not from the params, and also I set the tenantId, and use that as well from the cookies.
Is it okay to do so, or I am completely wrong on this? If so, what would be the way to go?