ta
TanStack
GitHub
form
Workspace
GitHub
CI Pipeline Executions
Filtered
Runs
Demo
Insights
Compare tasks
Analytics
Sign in
Toggle sidebar
Overview
⌘K
form
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
2269
9f4521a7 perF(form-core): extract meta markers to state object In order to compute if we can re-use the previous meta, we currently tag two properties onto the meta (`derivedMetaSourceKey`, `derivedMetaCanDisplayErrorsKey`). This is fairly expensive because it means we change the shape of an otherwise consistently structured object each time the value changes. We only make use of this when the value changes, so this change switches to using a `markers` object which transitions between values. Basically this pattern: ```ts const markers = { ... }; createAtom((prev) => { // in here, mutate `markers` when prev != curr }); ``` This means the underlying meta object never changes shape. Also important to note, this now means `getFieldSnapshot` doesn't even pass through this code path anymore. NOTE: there's also a bit of a drive-by in here. I updated `nameToFieldNodeSegments` to slice between separators instead of appending characters one-by-one. Much faster, but can be split into its own PR if needed.
by James Garbutt
J
Previous page
Previous
Next
Next page