You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Query enumeration recomputes on pathname/hash-only navigation with unchanged search (Solid 2) #624
With @solidjs/router@2.0.0-next.30 and Solid 2.0.0-rc.10, computations enumerating location.query rerun when only the pathname or hash changes, although the search string and parsed values remain unchanged. Repeated parameters also receive new array references.
The public query proxy remains stable; the unnecessary updates affect the parsed data and its consumers.
Reproduction
Using a memory router with a /*rest route, keep the same consumer mounted:
When the search string is unchanged, pathname-only or hash-only navigation should not reparse query parameters or invalidate computations that depend only on those parameters.
Actual behavior
Query parsing tracks the entire URL, so unrelated pathname/hash changes recreate the parsed query data and rerun query-enumerating consumers. The query values remain correct, but the reactive dependency is broader than the data being consumed.
Activity
ryansolid commentedon Sep 30, 2026
Fixed by #635 (merged to
nextin 2a1cd8f); ships in the next 2.0 prerelease.