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

Application Customizer unmounts after second lazy-load in new Lists UI #10034

Open
2 of 9 tasks
gerkevgarderen opened this issue Nov 29, 2024 · 0 comments
Open
2 of 9 tasks
Labels
Needs: Triage 🔍 Awaiting categorization and initial review. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Comments

@gerkevgarderen
Copy link

gerkevgarderen commented Nov 29, 2024

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

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • Microsoft Edge Version 131.0.2903.70, and Mozilla Firefox 133.0
  • SPFx version 1.19.0
  • Node.js version 18

Describe the bug / error

When you scroll down in a Sharepoint list, in the new UI (Lists experience), and it lazy-loads new items twice, the Application Customizer component disappears.

Only thing of note, when using the template Application Customizer component: I can see the onDispose is called for the Application Customizer component:
[HelloWorldApplicationCustomizer._onDispose] Disposed custom top and bottom placeholders.

Is anyone else seeing issues with Application Customizers disappearing when you scroll down far enough in a new UI style List?
We use this in combination with Command Customizers, so only seeing the new behaviour since the past few days.

Steps to reproduce

  1. Load spfx with an Application Customizer and a Command Customizer.
  2. Open a list where the App customizer and Command customizer are both active
  3. All is well so far. Application customizer is there, Command Customizer too.
  4. Scroll down to the bottom, new rows load for the first time. All is still well.
  5. Scroll down to bottom again, new rows load. Now the Application Customizer unloads. No console errors.

To be precise, the unmount / onDispose is called immediately after loading and rendering new listitems.

Expected behavior

The application customizer does not unload/umount when scrolling, or at least remounts after rendering the newly lazy-loaded items.

@gerkevgarderen gerkevgarderen added the type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. label Nov 29, 2024
@VesaJuvonen VesaJuvonen added the Needs: Triage 🔍 Awaiting categorization and initial review. label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Awaiting categorization and initial review. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Projects
None yet
Development

No branches or pull requests

2 participants