eclipsesource / eclipsesource/jsonforms

TanStack Start SPA option causes huge lags

Open
#2,517 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.7k
Forks
424
Avg merge
17d 8h
Merged PRs (30d)
1

Description

### 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
```typescript
// 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.