Skip to content

Two loading spinners are displayed #590

@madflow

Description

@madflow

Describe the bug

  • When using a recent version of this library and @formio/js two loading spinners are displayed for a single form.

To Reproduce

  git clone git@github.com:formio/react-app-starterkit.git
  cd react-app-starterkit
  yarn
  yarn run dev

or with a fresh vite create

{
  "name": "formio-vite",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "tsc -b && vite build",
    "lint": "eslint .",
    "preview": "vite preview"
  },
  "dependencies": {
    "@formio/js": "^5.0.0",
    "@formio/react": "6.0.0-rc.1",
    "react": "^18.3.1",
    "react-dom": "^18.3.1"
  },
  "devDependencies": {
    "@eslint/js": "^9.17.0",
    "@types/react": "^18.3.18",
    "@types/react-dom": "^18.3.5",
    "@vitejs/plugin-react": "^4.3.4",
    "eslint": "^9.17.0",
    "eslint-plugin-react-hooks": "^5.0.0",
    "eslint-plugin-react-refresh": "^0.4.16",
    "globals": "^15.14.0",
    "typescript": "~5.6.2",
    "typescript-eslint": "^8.18.2",
    "vite": "^6.0.5"
  }
}
@import "@formio/js/dist/formio.full.min.css";
    <Form src="https://examples.form.io/example" />

Expected behavior

  • It shows one loading spinner.

Screenshots

Kapture 2025-01-07 at 14 47 08

Sandbox Example
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions