Skip to content

TanStack Start SPA option causes huge lags #2517

@ProfessionalGriefer

Description

@ProfessionalGriefer

Describe the bug

I use TanStack Start with the SPA option.
When reloading the page it takes more than 6 seconds for the form to show up.
In the Chrome Profiler I see that it is awaiting a Promise for more than 5 seconds.
This bug happens with the Material and the Vanilla renderer.

Expected behavior

I expect that the SPA flag does not have a significant impact on the page loading time.

Steps to reproduce the issue

  • Use TanStack Start to create a new React project.
  • Add the jsonforms dependencies and any schema.json and uischema.json file.
  • Use the Material or the vanilla renderer
  • Enable the SPA flag
// vite.config.ts
const config = defineConfig({
  plugins: [
    ...
    tanstackStart({
      spa: {
        enabled: true,
      },
    }),
  ],
})

Screenshots

No response

Which Version of JSON Forms are you using?

3.7.0

Package

Core

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions