Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reset subEntityId as empty once desired task is executed in MS Teams Tabs #2475

Open
jailene5 opened this issue Aug 20, 2024 · 5 comments

Comments

@jailene5
Copy link

Is there any way to update the context/subEntityId or have a record that the subEntityId has already been followed once? I have enabled deeplinking using subEntityId for one of my tabs in my app, but when trying to return to the default state/page of this tab, it's reloading the path/page triggered by the subEntityId because I can't set it to be an empty string or null after the desired task is executed. Is there some sort of workaround for this issue?

Thank you for your help!

Copy link
Contributor

Hi jailene5! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

@Meghana-MSFT
Copy link

@jailene5 - Thank you for reporting this, we will check this and get back to you.

@Meghana-MSFT
Copy link

@jailene5 - We got the below response from engineering team.

We don't provide a mechanism for apps to clear the subEntityId from the context. The subEntityId gets automatically cleared when the user navigates away from the app/tab.

Could you please let us know how this app handles internal routing or what stack it's built on? Typically, a developer should be able to read the subEntityId when their app is first loaded and store it in memory (e.g. using React's useState hook). Then they can clear this in-memory state once it's no longer relevant and avoid re-using it again until their app is reloaded (e.g. when the user navigates away and comes back possibly via a different deep link).

@ccascante87
Copy link

I'm having the same issue, subEntityId is not cleared after navigating to another tab. Only after navigating away from the app.

@bitobrian
Copy link

Same issue. subPageId sticks until nav out of app and back in without subPageId data..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants