• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

eclipsesource / jsonforms / 45161012927
85%

Build:
DEFAULT BRANCH: master
Ran 23 Nov 2026 11:05AM UTC
Jobs 1
Files 806
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Nov 2026 10:59AM UTC coverage: 84.864%. Remained the same
45161012927

push

github

web-flow
perf(vue): keep the state of a form shallow (#2623)

* perf(vue): keep the state of a form shallow

`JsonForms` returns `schemaToUse`, `uischemaToUse` and the `jsonforms`
object from `data()`, thus Vue makes a deep proxy for the schema, the UI
schema, the renderers, the cells and `ajv`. Testers and the scope
resolution read the schema many times for each control, thus a large form
makes and reads many thousands of proxies. A profile of a 160-field form
gave 45% of the samples to `isEmpty` and 15% to the proxy `ownKeys` trap.
The mount time of that form goes from 1790 ms to 1000 ms.

`shallowRef` and `shallowReactive` keep this state shallow. Vue keeps a
`shallowReactive` object as it is when it makes the object of `data()`
reactive, and the reactive traps read and write through a `shallowRef`,
thus the component keeps its usual behavior. A reducer replaces `core`
for each change, thus shallow tracking is sufficient for the renderers,
which read the state through computed props.

The state holds the value of a prop without `markRaw`, thus JSON Forms
writes no flag on the object of the application, and a deep watcher of
the application still runs. `toRaw` gets the `ajv` instance itself,
because Ajv cannot compile a schema through a proxy of itself. The `data`
watcher compares the raw objects, because a parent that passes back the
current form data can give a proxy of that data. Without this, the form
generates a new schema for its own data.

An application that keeps these values out of deep reactive state no
longer needs `markRaw` for them. `AdditionalProperties` of
`@jsonforms/vue-vuetify`, the example application and the tests no longer
apply it.

`MIGRATION.md` gets an entry. The form data that a renderer gets is no
longer a proxy, thus a change of the data needs `handleChange`.

* fix(vue): unwrap the initial data, schema and UI schema

An application that keeps the `data`, the `schema` or the `uischema` in
`reactive()` state gives a proxy of it to... (continued)

12795 of 32190 branches covered (39.75%)

20583 of 24254 relevant lines covered (84.86%)

49.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45161012927.1 23 Nov 2026 11:04AM UTC 1171
86.22
GitHub Action Run
Source Files on build 45161012927
  • Tree
  • List 806
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45161012927
  • c3d1f3f2 on github
  • Prev Build on master (#44750011755)
  • Next Build on master (#45169642487)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc