SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.23k stars 992 forks source link

Viva Connections Teams Desktop Application Customizer not Rendering #8768

Closed c-eiser13 closed 1 year ago

c-eiser13 commented 1 year ago

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

Additional environment details

Describe the bug / error

We have an Application Customizer that creates a global navigation menu in the top placeholder and we noticed today in multiple tenants that the application customizer no longer renders when in Teams Desktop. If we navigate to the site in the browser, or if we use Teams in the browser, we see the menu as we should.

Teams Browser Experience: image image

Teams Desktop Experience: image image

I thought it may be a styling issue, so I removed the darker background color and set the text back to black, but the top placeholder is still an empty, white space. If it helps to troubleshoot further, I am making a batched rest call to get the data to build the navigation using @pnp/sp.

Steps to reproduce

  1. Create application customizer that created content in top placeholder and deploy
  2. Ensure site set to home site renders the app customizer
  3. View the site in Viva connections via the Teams desktop client.

Expected behavior

App customizer renders correctly in Teams desktop like it does in Teams in the browser and when viewing the site directly in the browser.

ghost commented 1 year ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

c-eiser13 commented 1 year ago

Troubleshooting further, we determined the cause was the use of structuredClone in processing some data for the menu. Switched to deepClone and menu renders correctly now.

ghost commented 1 year ago

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues