SharePoint / SharePoint/sp-dev-docs

Some SharePoint web parts don’t always show up until the page is refreshed

Open
#10,397 10 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

area:spfx Needs: Author Feedback sharepoint-developer-support
Dominant language
PowerShell
Stars
1.4k
Forks
1.1k
Avg merge
4d 12h
Merged PRs (30d)
12

Description

Additional environment details
  • SPFx version: 1.18.2
  • React version: 17.0.1
  • Fluent UI version: 8.106.4
  • Node version: 16.x / 18.x
Issue description

We are experiencing an intermittent rendering issue with an SPFx solution (v1.18.2) containing five custom web parts.

The solution builds successfully and deploys to the App Catalog without errors. All web parts can be added to a modern page as expected. However, the following behavior occurs:

  1. When loading the site in a new browser tab (by pasting the site URL and pressing Enter), the top two or three web parts occasionally do not render.
  2. If the page is refreshed, the web parts load correctly.
  3. If navigating away from the page and then returning, one or more web parts may again be missing.
  4. No errors are logged in the browser console, but the web part placeholders are absent from the DOM.

Questions:

  1. What are the potential root causes of web parts disappearing intermittently in SPFx 1.18.2 with no console errors?
  2. Could unused dependencies (e.g., lucide-react or overlapping icon libraries) impact SPFx bundle loading or rendering?
  3. Are there known issues with SPFx 1.18.2, React 17, or Fluent UI v8 in scenarios where multiple custom web parts are loaded on the same page?

Before:
Image
After:
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.