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 5127d86 commit 84e7a05Copy full SHA for 84e7a05
2 files changed
.changeset/proud-clubs-buy.md
@@ -0,0 +1,5 @@
1
+---
2
+'@tanstack/solid-router': patch
3
4
+
5
+Remove unnecessary setTimeout from Match components
packages/solid-router/src/Match.tsx
@@ -354,7 +354,7 @@ export const MatchInner = (): any => {
354
}
355
356
const [loaderResult] = Solid.createResource(async () => {
357
- await new Promise((r) => setTimeout(r, 0))
+ await Promise.resolve()
358
return router.getMatch(currentMatch().id)?._nonReactive
359
.loadPromise
360
})
@@ -411,7 +411,7 @@ export const MatchInner = (): any => {
411
412
413
414
415
return getLoadPromise(matchId, routerMatch)
416
417
0 commit comments