Skip to content

Commit 917c29e

Browse files
author
Menachem Hornbacher
committed
fix: remove @tanstack/pacer for now
1 parent 7546228 commit 917c29e

3 files changed

Lines changed: 4 additions & 26 deletions

File tree

packages/form-core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
],
5353
"dependencies": {
5454
"@tanstack/devtools-event-client": "^0.3.5",
55-
"@tanstack/pacer": "^0.15.3",
5655
"@tanstack/store": "^0.7.7"
5756
},
5857
"devDependencies": {

packages/form-core/src/FormApi.ts

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Derived, Store, batch } from '@tanstack/store'
2-
import { throttle } from '@tanstack/pacer'
32
import {
43
deleteBy,
54
determineFormLevelErrorSourceAndValue,
@@ -1310,20 +1309,12 @@ export class FormApi<
13101309

13111310
this.update(opts || {})
13121311

1313-
const debouncedDevtoolState = throttle(
1314-
(state: AnyFormState) =>
1315-
formEventClient.emit('form-state', {
1316-
id: this._formId,
1317-
state: state,
1318-
}),
1319-
{
1320-
wait: 300,
1321-
},
1322-
)
1323-
13241312
// devtool broadcasts
13251313
this.store.subscribe(() => {
1326-
debouncedDevtoolState(this.store.state)
1314+
formEventClient.emit('form-state', {
1315+
id: this._formId,
1316+
state: this.store.state,
1317+
})
13271318
})
13281319

13291320
// devtool requests

pnpm-lock.yaml

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)