We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a3f49 commit 3e98aa5Copy full SHA for 3e98aa5
packages/router-core/src/router.ts
@@ -2288,10 +2288,14 @@ export class RouterCore<
2288
: ''
2289
2290
if (matchesKey) {
2291
- this.__store.setState((s) => ({
2292
- ...s,
2293
- [matchesKey]: s[matchesKey]?.map((d) => (d.id === id ? updater(d) : d)),
2294
- }))
+ this.startTransition(() => {
+ this.__store.setState((s) => ({
+ ...s,
+ [matchesKey]: s[matchesKey]?.map((d) =>
2295
+ d.id === id ? updater(d) : d,
2296
+ ),
2297
+ }))
2298
+ })
2299
}
2300
2301
0 commit comments